| package {{package}}.impl; |
| |
| {{#operations}}{{#operation}}{{#isMultipart}}import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; |
| {{/isMultipart}}{{/operation}}{{/operations}} |
| |
| import {{package}}.{{classname}}Service; |
| {{#imports}}import {{import}}; |
| {{/imports}} |
| |
| import java.util.List; |
| |
| import java.io.InputStream; |
| |
| {{#useBeanValidation}} |
| import {{javaxPackage}}.validation.constraints.*; |
| import {{javaxPackage}}.validation.Valid; |
| {{/useBeanValidation}} |
| import {{javaxPackage}}.ws.rs.core.Response; |
| import {{javaxPackage}}.ws.rs.core.SecurityContext; |
| |
| import org.apache.polaris.core.context.RealmContext; |
| |
| {{! |
| Note that this template is copied from https://github.com/OpenAPITools/openapi-generator/blob/783e68c7acbbdcbb2282d167d1644b069f12d486/modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/apiServiceImpl.mustache |
| It is here to remove some unsupported imports (ApiResponseMessage, openapi.tools.*) |
| }} |
| /** |
| * Default implementation of the {{classname}}Service. Provides default |
| * implementations for all service methods that return 501 error codes (not implemented). |
| * |
| * This file is automatically generated by the OpenAPI Code Generator based on configuration in the |
| * pom.xml file in the module. |
| * |
| * DO NOT EDIT THIS FILE BY HAND - CHANGES WILL BE AUTOMATICALLY OVERWRITTEN |
| */ |
| {{>generatedAnnotation}} |
| {{#operations}} |
| public class {{classname}}ServiceImpl implements {{classname}}Service { |
| {{#operation}} |
| public Response {{nickname}}({{#isMultipart}}MultipartFormDataInput input,{{/isMultipart}}{{#allParams}}{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{^isMultipart}}{{>serviceFormParams}},{{/isMultipart}}{{#isMultipart}}{{^isFormParam}},{{/isFormParam}}{{/isMultipart}}{{/allParams}}RealmContext realmContext,SecurityContext securityContext) { |
| return Response.status(501).build(); // not implemented |
| } |
| {{/operation}} |
| } |
| {{/operations}} |