openapi.templates.kora.javaAsyncServerApiDelegate.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-generator Show documentation
Show all versions of openapi-generator Show documentation
Kora openapi-generator module
/**
* 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}}
{{#isAsync}}
import java.util.concurrent.CompletionStage;
{{/isAsync}}{{#isReactive}}
import reactor.core.publisher.Mono;
{{/isReactive}}
{{#requestInDelegateParams}}
import ru.tinkoff.kora.http.server.common.HttpServerRequest;
{{/requestInDelegateParams}}
import java.util.List;
import java.util.Map;
@ru.tinkoff.kora.common.annotation.Generated("openapi generator kora server"){{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}
public interface {{classname}}Delegate {
{{#operations}}
{{#operation}}
{{#isAsync}}CompletionStage{{/isAsync}}{{#isReactive}}Mono{{/isReactive}}<{{classname}}Responses.{{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}ApiResponse> {{operationId}}(
{{#vendorExtensions.requestInDelegateParams}} HttpServerRequest _serverRequest{{#hasParams}},
{{/hasParams}}{{/vendorExtensions.requestInDelegateParams}}{{#allParams}} {{^isFormParam}}
{{^required}}@jakarta.annotation.Nullable
{{/required}}{{{dataType}}} {{paramName}}{{#hasFormParams}},{{/hasFormParams}}{{^hasFormParams}}{{^-last}},{{/-last}}{{/hasFormParams}}
{{/isFormParam}}{{/allParams}} {{#hasFormParams}}
{{classname}}Controller.{{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}FormParam form
{{/hasFormParams}});
{{/operation}}
}
{{/operations}}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy