Skip to content

Instantly share code, notes, and snippets.

@tao-qian
Created August 31, 2016 17:29
Show Gist options
  • Save tao-qian/69a524c02b25f23f089baa24ead2d611 to your computer and use it in GitHub Desktop.
Save tao-qian/69a524c02b25f23f089baa24ead2d611 to your computer and use it in GitHub Desktop.
public class V1Api {
@Inject V1ApiService delegate;
@GET
@Path("/v1/account")
public AccountInfo getAccountInfo(@ApiParam(required=true) @QueryParam("account_id") String accountId) {
assertNotNull(accountId); // null check generated for all required parameters
return delegate.getAccountInfo(accountId);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment