All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.itroadlabs.apicross.springmvc.templates.requestsHandlerMethod.hbs Maven / Gradle / Ivy

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