io.github.itroadlabs.apicross.springmvc.templates.requestsHandlerMethod.hbs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apicross-springmvc Show documentation
Show all versions of apicross-springmvc Show documentation
Spring Web MVC code generator
The newest version!
{{> documentation }}
{{> requestsHandlerMethodHttpMapping}}
ResponseEntity<{{> requestsHandlerMethodResponseBodyType}}> {{methodName}}(
{{> requestsHandlerMethodPathVars}}
{{#if pathParameters}},{{/if}}
{{#if generatorOpts.useQueryStringParametersObject}}
{{#if queryParameters}}
{{capitalizeFirst operationId}}Query queryParameters,
{{/if}}
{{else}}
{{> requestsHandlerMethodQueryStringParameters}}
{{/if}}
@RequestHeader HttpHeaders headers
{{#if customAttributes.addAuthPrincipalArg}}
, @CurrentSecurityContext(expression = "authentication") Authentication authentication
{{/if}}
{{#if requestBody}}
,
{{#if requestBody.customAttributes.avoidRequestBodyAnnotation}}
{{> requestsHandlerMethodRequestBodyType}} requestEntity
{{else}}
@RequestBody(required = {{requestBodyRequired}}) {{> requestsHandlerMethodRequestBodyType}} requestBody
{{/if}}
{{/if}}
) throws Exception;
© 2015 - 2024 Weber Informatics LLC | Privacy Policy