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

openapi.templates.kora.kotlinServerApiDelegate.mustache Maven / Gradle / Ivy

The newest version!
/**
 * NOTE: This class is auto generated by Kora OpenAPI Generator (https://openapi-generator.tech) ({{{generatorVersion}}}).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
package {{package}}

{{#imports}}import {{import}}
{{/imports}}
{{#requestInDelegateParams}}
import ru.tinkoff.kora.http.server.common.HttpServerRequest
{{/requestInDelegateParams}}

@ru.tinkoff.kora.common.annotation.Generated("openapi generator kora server"){{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}
interface {{classname}}Delegate {
{{#operations}}
{{#operation}}
    {{#isSuspend}}suspend {{/isSuspend}}fun {{operationId}}(
{{#vendorExtensions.requestInDelegateParams}}      _serverRequest: HttpServerRequest{{#hasParams}}, {{/hasParams}}{{/vendorExtensions.requestInDelegateParams}}{{#allParams}}      {{^isFormParam}}
      {{paramName}}: {{{dataType}}}{{^required}}?{{/required}}{{#hasFormParams}},{{/hasFormParams}}{{^hasFormParams}}{{^-last}},{{/-last}}{{/hasFormParams}}
{{/isFormParam}}{{/allParams}}    {{#hasFormParams}}
      form: {{classname}}Controller.{{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}FormParam
    {{/hasFormParams}}): {{classname}}Responses.{{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}ApiResponse

{{/operation}}
}
{{/operations}}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy