forked from loafle/openapi-generator-original
Spring request mapping mode (#13838)
* Introduce RequestMappingMode option * generate docs * Add test case using interfaceOnly * Generate Samples * Add requestMappingMode: iface to bin/configs/spring-boot-oas3.yaml * Restore #12250: Move Feign Client url parameter under condition. * Rename iface to api_interface.
This commit is contained in:
parent
fe5601ab9b
commit
b54299fffa
@ -8,3 +8,4 @@ additionalProperties:
|
|||||||
artifactId: springboot
|
artifactId: springboot
|
||||||
snapshotVersion: "true"
|
snapshotVersion: "true"
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
requestMappingMode: api_interface
|
||||||
|
@ -74,6 +74,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|performBeanValidation|Use Bean Validation Impl. to perform BeanValidation| |false|
|
|performBeanValidation|Use Bean Validation Impl. to perform BeanValidation| |false|
|
||||||
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
||||||
|reactive|wrap responses in Mono/Flux Reactor types (spring-boot only)| |false|
|
|reactive|wrap responses in Mono/Flux Reactor types (spring-boot only)| |false|
|
||||||
|
|requestMappingMode|Where to generate the class level @RequestMapping annotation.|<dl><dt>**api_interface**</dt><dd>Generate the @RequestMapping annotation on the generated Api Interface.</dd><dt>**controller**</dt><dd>Generate the @RequestMapping annotation on the generated Api Controller Implementation.</dd><dt>**none**</dt><dd>Do not add a class level @RequestMapping annotation.</dd></dl>|controller|
|
||||||
|responseWrapper|wrap the responses in given type (Future, Callable, CompletableFuture,ListenableFuture, DeferredResult, RxObservable, RxSingle or fully qualified type)| |null|
|
|responseWrapper|wrap the responses in given type (Future, Callable, CompletableFuture,ListenableFuture, DeferredResult, RxObservable, RxSingle or fully qualified type)| |null|
|
||||||
|returnSuccessCode|Generated server returns 2xx code| |false|
|
|returnSuccessCode|Generated server returns 2xx code| |false|
|
||||||
|scmConnection|SCM connection in generated pom.xml| |scm:git:git@github.com:openapitools/openapi-generator.git|
|
|scmConnection|SCM connection in generated pom.xml| |scm:git:git@github.com:openapitools/openapi-generator.git|
|
||||||
|
@ -67,6 +67,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|performBeanValidation|Use Bean Validation Impl. to perform BeanValidation| |false|
|
|performBeanValidation|Use Bean Validation Impl. to perform BeanValidation| |false|
|
||||||
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
||||||
|reactive|wrap responses in Mono/Flux Reactor types (spring-boot only)| |false|
|
|reactive|wrap responses in Mono/Flux Reactor types (spring-boot only)| |false|
|
||||||
|
|requestMappingMode|Where to generate the class level @RequestMapping annotation.|<dl><dt>**api_interface**</dt><dd>Generate the @RequestMapping annotation on the generated Api Interface.</dd><dt>**controller**</dt><dd>Generate the @RequestMapping annotation on the generated Api Controller Implementation.</dd><dt>**none**</dt><dd>Do not add a class level @RequestMapping annotation.</dd></dl>|controller|
|
||||||
|responseWrapper|wrap the responses in given type (Future, Callable, CompletableFuture,ListenableFuture, DeferredResult, RxObservable, RxSingle or fully qualified type)| |null|
|
|responseWrapper|wrap the responses in given type (Future, Callable, CompletableFuture,ListenableFuture, DeferredResult, RxObservable, RxSingle or fully qualified type)| |null|
|
||||||
|returnSuccessCode|Generated server returns 2xx code| |false|
|
|returnSuccessCode|Generated server returns 2xx code| |false|
|
||||||
|scmConnection|SCM connection in generated pom.xml| |scm:git:git@github.com:openapitools/openapi-generator.git|
|
|scmConnection|SCM connection in generated pom.xml| |scm:git:git@github.com:openapitools/openapi-generator.git|
|
||||||
|
@ -43,7 +43,6 @@ import java.util.Objects;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.tuple.Pair;
|
import org.apache.commons.lang3.tuple.Pair;
|
||||||
import org.openapitools.codegen.CliOption;
|
import org.openapitools.codegen.CliOption;
|
||||||
@ -107,6 +106,25 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
public static final String UNHANDLED_EXCEPTION_HANDLING = "unhandledException";
|
public static final String UNHANDLED_EXCEPTION_HANDLING = "unhandledException";
|
||||||
public static final String USE_SPRING_BOOT3 = "useSpringBoot3";
|
public static final String USE_SPRING_BOOT3 = "useSpringBoot3";
|
||||||
public static final String USE_JAKARTA_EE = "useJakartaEe";
|
public static final String USE_JAKARTA_EE = "useJakartaEe";
|
||||||
|
public static final String REQUEST_MAPPING_OPTION = "requestMappingMode";
|
||||||
|
public static final String USE_REQUEST_MAPPING_ON_CONTROLLER = "useRequestMappingOnController";
|
||||||
|
public static final String USE_REQUEST_MAPPING_ON_INTERFACE = "useRequestMappingOnInterface";
|
||||||
|
|
||||||
|
public enum RequestMappingMode {
|
||||||
|
api_interface("Generate the @RequestMapping annotation on the generated Api Interface."),
|
||||||
|
controller("Generate the @RequestMapping annotation on the generated Api Controller Implementation."),
|
||||||
|
none("Do not add a class level @RequestMapping annotation.");
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
RequestMappingMode(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static final String OPEN_BRACE = "{";
|
public static final String OPEN_BRACE = "{";
|
||||||
public static final String CLOSE_BRACE = "}";
|
public static final String CLOSE_BRACE = "}";
|
||||||
@ -116,7 +134,6 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
protected String basePackage = "org.openapitools";
|
protected String basePackage = "org.openapitools";
|
||||||
protected boolean interfaceOnly = false;
|
protected boolean interfaceOnly = false;
|
||||||
protected boolean useFeignClientUrl = true;
|
protected boolean useFeignClientUrl = true;
|
||||||
protected boolean useFeignClient = false;
|
|
||||||
protected boolean delegatePattern = false;
|
protected boolean delegatePattern = false;
|
||||||
protected boolean delegateMethod = false;
|
protected boolean delegateMethod = false;
|
||||||
protected boolean singleContentTypes = false;
|
protected boolean singleContentTypes = false;
|
||||||
@ -136,6 +153,7 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
protected boolean useSpringController = false;
|
protected boolean useSpringController = false;
|
||||||
protected boolean useSwaggerUI = true;
|
protected boolean useSwaggerUI = true;
|
||||||
protected boolean useSpringBoot3 = false;
|
protected boolean useSpringBoot3 = false;
|
||||||
|
protected RequestMappingMode requestMappingMode = RequestMappingMode.controller;
|
||||||
|
|
||||||
public SpringCodegen() {
|
public SpringCodegen() {
|
||||||
super();
|
super();
|
||||||
@ -208,6 +226,15 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
cliOptions
|
cliOptions
|
||||||
.add(CliOption.newBoolean(RETURN_SUCCESS_CODE, "Generated server returns 2xx code", returnSuccessCode));
|
.add(CliOption.newBoolean(RETURN_SUCCESS_CODE, "Generated server returns 2xx code", returnSuccessCode));
|
||||||
cliOptions.add(CliOption.newBoolean(SPRING_CONTROLLER, "Annotate the generated API as a Spring Controller", useSpringController));
|
cliOptions.add(CliOption.newBoolean(SPRING_CONTROLLER, "Annotate the generated API as a Spring Controller", useSpringController));
|
||||||
|
|
||||||
|
CliOption requestMappingOpt = new CliOption(REQUEST_MAPPING_OPTION,
|
||||||
|
"Where to generate the class level @RequestMapping annotation.")
|
||||||
|
.defaultValue(requestMappingMode.name());
|
||||||
|
for (RequestMappingMode mode: RequestMappingMode.values()) {
|
||||||
|
requestMappingOpt.addEnum(mode.name(), mode.getDescription());
|
||||||
|
}
|
||||||
|
cliOptions.add(requestMappingOpt);
|
||||||
|
|
||||||
cliOptions.add(CliOption.newBoolean(UNHANDLED_EXCEPTION_HANDLING,
|
cliOptions.add(CliOption.newBoolean(UNHANDLED_EXCEPTION_HANDLING,
|
||||||
"Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).",
|
"Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).",
|
||||||
unhandledException));
|
unhandledException));
|
||||||
@ -304,6 +331,13 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
LOGGER.info("Set base package to invoker package ({})", basePackage);
|
LOGGER.info("Set base package to invoker package ({})", basePackage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (additionalProperties.containsKey(REQUEST_MAPPING_OPTION)) {
|
||||||
|
RequestMappingMode optValue = RequestMappingMode.valueOf(
|
||||||
|
String.valueOf(additionalProperties.get(REQUEST_MAPPING_OPTION)));
|
||||||
|
setRequestMappingMode(optValue);
|
||||||
|
additionalProperties.remove(REQUEST_MAPPING_OPTION);
|
||||||
|
}
|
||||||
|
|
||||||
useOneOfInterfaces = true;
|
useOneOfInterfaces = true;
|
||||||
legacyDiscriminatorBehavior = false;
|
legacyDiscriminatorBehavior = false;
|
||||||
|
|
||||||
@ -498,8 +532,9 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
additionalProperties.put(SINGLE_CONTENT_TYPES, "true");
|
additionalProperties.put(SINGLE_CONTENT_TYPES, "true");
|
||||||
this.setSingleContentTypes(true);
|
this.setSingleContentTypes(true);
|
||||||
}
|
}
|
||||||
|
// @RequestMapping not supported with spring cloud openfeign.
|
||||||
|
setRequestMappingMode(RequestMappingMode.none);
|
||||||
additionalProperties.put(USE_FEIGN_CLIENT, "true");
|
additionalProperties.put(USE_FEIGN_CLIENT, "true");
|
||||||
this.setUseFeignClient(true);
|
|
||||||
} else {
|
} else {
|
||||||
apiTemplateFiles.put("apiController.mustache", "Controller.java");
|
apiTemplateFiles.put("apiController.mustache", "Controller.java");
|
||||||
if (containsEnums()) {
|
if (containsEnums()) {
|
||||||
@ -582,6 +617,19 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (getRequestMappingMode()) {
|
||||||
|
case api_interface:
|
||||||
|
additionalProperties.put(USE_REQUEST_MAPPING_ON_INTERFACE, true);
|
||||||
|
break;
|
||||||
|
case controller:
|
||||||
|
additionalProperties.put(USE_REQUEST_MAPPING_ON_CONTROLLER, true);
|
||||||
|
break;
|
||||||
|
case none:
|
||||||
|
additionalProperties.put(USE_REQUEST_MAPPING_ON_INTERFACE, false);
|
||||||
|
additionalProperties.put(USE_REQUEST_MAPPING_ON_CONTROLLER, false);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// add lambda for mustache templates
|
// add lambda for mustache templates
|
||||||
additionalProperties.put("lambdaRemoveDoubleQuote", (Mustache.Lambda) (fragment, writer) -> writer
|
additionalProperties.put("lambdaRemoveDoubleQuote", (Mustache.Lambda) (fragment, writer) -> writer
|
||||||
.write(fragment.execute().replaceAll("\"", Matcher.quoteReplacement(""))));
|
.write(fragment.execute().replaceAll("\"", Matcher.quoteReplacement(""))));
|
||||||
@ -873,10 +921,6 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
this.singleContentTypes = singleContentTypes;
|
this.singleContentTypes = singleContentTypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseFeignClient( boolean useFeignClient ) {
|
|
||||||
this.useFeignClient = useFeignClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSkipDefaultInterface(boolean skipDefaultInterface) {
|
public void setSkipDefaultInterface(boolean skipDefaultInterface) {
|
||||||
this.skipDefaultInterface = skipDefaultInterface;
|
this.skipDefaultInterface = skipDefaultInterface;
|
||||||
}
|
}
|
||||||
@ -1121,4 +1165,12 @@ public class SpringCodegen extends AbstractJavaCodegen
|
|||||||
public void setUseSpringBoot3(boolean useSpringBoot3) {
|
public void setUseSpringBoot3(boolean useSpringBoot3) {
|
||||||
this.useSpringBoot3 = useSpringBoot3;
|
this.useSpringBoot3 = useSpringBoot3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public RequestMappingMode getRequestMappingMode() {
|
||||||
|
return requestMappingMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRequestMappingMode(RequestMappingMode requestMappingMode) {
|
||||||
|
this.requestMappingMode = requestMappingMode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -96,11 +96,11 @@ import javax.annotation.Generated;
|
|||||||
{{#virtualService}}
|
{{#virtualService}}
|
||||||
@VirtualService
|
@VirtualService
|
||||||
{{/virtualService}}
|
{{/virtualService}}
|
||||||
{{^useFeignClient}}
|
{{#useRequestMappingOnInterface}}
|
||||||
{{=<% %>=}}
|
{{=<% %>=}}
|
||||||
@RequestMapping("${openapi.<%title%>.base-path:<%>defaultBasePath%>}")
|
@RequestMapping("${openapi.<%title%>.base-path:<%>defaultBasePath%>}")
|
||||||
<%={{ }}=%>
|
<%={{ }}=%>
|
||||||
{{/useFeignClient}}
|
{{/useRequestMappingOnInterface}}
|
||||||
public interface {{classname}} {
|
public interface {{classname}} {
|
||||||
{{#jdk8-default-interface}}
|
{{#jdk8-default-interface}}
|
||||||
{{^isDelegate}}
|
{{^isDelegate}}
|
||||||
|
@ -58,6 +58,11 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
{{>generatedAnnotation}}
|
{{>generatedAnnotation}}
|
||||||
@Controller
|
@Controller
|
||||||
|
{{#useRequestMappingOnController}}
|
||||||
|
{{=<% %>=}}
|
||||||
|
@RequestMapping("${openapi.<%title%>.base-path:<%>defaultBasePath%>}")
|
||||||
|
<%={{ }}=%>
|
||||||
|
{{/useRequestMappingOnController}}
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
public class {{classname}}Controller implements {{classname}} {
|
public class {{classname}}Controller implements {{classname}} {
|
||||||
{{#isDelegate}}
|
{{#isDelegate}}
|
||||||
|
@ -3,8 +3,6 @@ package {{package}};
|
|||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import {{configPackage}}.ClientConfiguration;
|
import {{configPackage}}.ClientConfiguration;
|
||||||
|
|
||||||
{{=<% %>=}}
|
@FeignClient(name="${{openbrace}}{{classVarName}}.name:{{classVarName}}{{closebrace}}", {{#useFeignClientUrl}}url="${{openbrace}}{{classVarName}}.url:{{basePath}}{{closebrace}}", {{/useFeignClientUrl}}configuration = ClientConfiguration.class)
|
||||||
@FeignClient(name="${<%classVarName%>.name:<%classVarName%>}", url="${<%classVarName%>.url:<%basePath%>}", configuration = ClientConfiguration.class)
|
|
||||||
<%={{ }}=%>
|
|
||||||
public interface {{classname}}Client extends {{classname}} {
|
public interface {{classname}}Client extends {{classname}} {
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,8 @@ import static java.util.stream.Collectors.groupingBy;
|
|||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.openapitools.codegen.TestUtils.assertFileContains;
|
import static org.openapitools.codegen.TestUtils.assertFileContains;
|
||||||
import static org.openapitools.codegen.TestUtils.assertFileNotContains;
|
import static org.openapitools.codegen.TestUtils.assertFileNotContains;
|
||||||
|
import static org.openapitools.codegen.languages.SpringCodegen.INTERFACE_ONLY;
|
||||||
|
import static org.openapitools.codegen.languages.SpringCodegen.REQUEST_MAPPING_OPTION;
|
||||||
import static org.openapitools.codegen.languages.SpringCodegen.RESPONSE_WRAPPER;
|
import static org.openapitools.codegen.languages.SpringCodegen.RESPONSE_WRAPPER;
|
||||||
import static org.openapitools.codegen.languages.SpringCodegen.SPRING_BOOT;
|
import static org.openapitools.codegen.languages.SpringCodegen.SPRING_BOOT;
|
||||||
import static org.openapitools.codegen.languages.features.DocumentationProviderFeatures.DOCUMENTATION_PROVIDER;
|
import static org.openapitools.codegen.languages.features.DocumentationProviderFeatures.DOCUMENTATION_PROVIDER;
|
||||||
@ -44,7 +46,6 @@ import java.util.function.Consumer;
|
|||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import org.assertj.core.api.Assertions;
|
|
||||||
import org.openapitools.codegen.java.assertions.JavaFileAssert;
|
import org.openapitools.codegen.java.assertions.JavaFileAssert;
|
||||||
import org.openapitools.codegen.CliOption;
|
import org.openapitools.codegen.CliOption;
|
||||||
import org.openapitools.codegen.ClientOptInput;
|
import org.openapitools.codegen.ClientOptInput;
|
||||||
@ -107,10 +108,9 @@ public class SpringCodegenTest {
|
|||||||
|
|
||||||
JavaFileAssert.assertThat(Paths.get(outputPath + "/src/main/java/org/openapitools/api/ZebrasApi.java"))
|
JavaFileAssert.assertThat(Paths.get(outputPath + "/src/main/java/org/openapitools/api/ZebrasApi.java"))
|
||||||
.assertTypeAnnotations()
|
.assertTypeAnnotations()
|
||||||
.hasSize(4)
|
.hasSize(3)
|
||||||
.containsWithName("Validated")
|
.containsWithName("Validated")
|
||||||
.containsWithName("Generated")
|
.containsWithName("Generated")
|
||||||
.containsWithName("RequestMapping")
|
|
||||||
.containsWithNameAndAttributes("Generated", ImmutableMap.of(
|
.containsWithNameAndAttributes("Generated", ImmutableMap.of(
|
||||||
"value", "\"org.openapitools.codegen.languages.SpringCodegen\""
|
"value", "\"org.openapitools.codegen.languages.SpringCodegen\""
|
||||||
))
|
))
|
||||||
@ -661,6 +661,7 @@ public class SpringCodegenTest {
|
|||||||
public void testRequestMappingAnnotation() throws IOException {
|
public void testRequestMappingAnnotation() throws IOException {
|
||||||
final SpringCodegen codegen = new SpringCodegen();
|
final SpringCodegen codegen = new SpringCodegen();
|
||||||
codegen.setLibrary("spring-boot");
|
codegen.setLibrary("spring-boot");
|
||||||
|
codegen.additionalProperties().put(REQUEST_MAPPING_OPTION, SpringCodegen.RequestMappingMode.api_interface);
|
||||||
|
|
||||||
final Map<String, File> files = generateFiles(codegen, "src/test/resources/2_0/petstore.yaml");
|
final Map<String, File> files = generateFiles(codegen, "src/test/resources/2_0/petstore.yaml");
|
||||||
|
|
||||||
@ -674,7 +675,7 @@ public class SpringCodegenTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testNoRequestMappingAnnotation() throws IOException {
|
public void testNoRequestMappingAnnotation_spring_cloud_default() throws IOException {
|
||||||
final SpringCodegen codegen = new SpringCodegen();
|
final SpringCodegen codegen = new SpringCodegen();
|
||||||
codegen.setLibrary( "spring-cloud" );
|
codegen.setLibrary( "spring-cloud" );
|
||||||
|
|
||||||
@ -687,6 +688,21 @@ public class SpringCodegenTest {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testNoRequestMappingAnnotation() throws IOException {
|
||||||
|
final SpringCodegen codegen = new SpringCodegen();
|
||||||
|
codegen.setLibrary( "spring-cloud" );
|
||||||
|
codegen.additionalProperties().put(INTERFACE_ONLY, "true");
|
||||||
|
codegen.additionalProperties().put(REQUEST_MAPPING_OPTION, SpringCodegen.RequestMappingMode.none);
|
||||||
|
|
||||||
|
final Map<String, File> files = generateFiles( codegen, "src/test/resources/2_0/petstore.yaml" );
|
||||||
|
|
||||||
|
// Check that the @RequestMapping annotation is not generated in the Api file
|
||||||
|
final File petApiFile = files.get( "PetApi.java" );
|
||||||
|
JavaFileAssert.assertThat( petApiFile ).assertTypeAnnotations().hasSize( 3 ).containsWithName( "Validated" )
|
||||||
|
.containsWithName( "Generated" ).containsWithName( "Tag" );
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSettersForConfigValues() throws Exception {
|
public void testSettersForConfigValues() throws Exception {
|
||||||
final SpringCodegen codegen = new SpringCodegen();
|
final SpringCodegen codegen = new SpringCodegen();
|
||||||
|
@ -27,7 +27,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "Default", description = "the Default API")
|
@Api(value = "Default", description = "the Default API")
|
||||||
@RequestMapping("${openapi.apiDocumentation.base-path:}")
|
|
||||||
public interface DefaultApi {
|
public interface DefaultApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,6 @@ package org.openapitools.api;
|
|||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.openapitools.configuration.ClientConfiguration;
|
import org.openapitools.configuration.ClientConfiguration;
|
||||||
|
|
||||||
@FeignClient(name="${pet.name:pet}", url="${pet.url:http://petstore.swagger.io/v2}", configuration = ClientConfiguration.class)
|
@FeignClient(name="${pet.name:pet}", configuration = ClientConfiguration.class)
|
||||||
public interface PetApiClient extends PetApi {
|
public interface PetApiClient extends PetApi {
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,6 @@ package org.openapitools.api;
|
|||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.openapitools.configuration.ClientConfiguration;
|
import org.openapitools.configuration.ClientConfiguration;
|
||||||
|
|
||||||
@FeignClient(name="${store.name:store}", url="${store.url:http://petstore.swagger.io/v2}", configuration = ClientConfiguration.class)
|
@FeignClient(name="${store.name:store}", configuration = ClientConfiguration.class)
|
||||||
public interface StoreApiClient extends StoreApi {
|
public interface StoreApiClient extends StoreApi {
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,6 @@ package org.openapitools.api;
|
|||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.openapitools.configuration.ClientConfiguration;
|
import org.openapitools.configuration.ClientConfiguration;
|
||||||
|
|
||||||
@FeignClient(name="${user.name:user}", url="${user.url:http://petstore.swagger.io/v2}", configuration = ClientConfiguration.class)
|
@FeignClient(name="${user.name:user}", configuration = ClientConfiguration.class)
|
||||||
public interface UserApiClient extends UserApi {
|
public interface UserApiClient extends UserApi {
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "Pet", description = "Everything about your Pets")
|
@Tag(name = "Pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,7 +33,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "Store", description = "Access to Petstore orders")
|
@Tag(name = "Store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +34,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "User", description = "Operations about user")
|
@Tag(name = "User", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "Default", description = "the Default API")
|
@Tag(name = "Default", description = "the Default API")
|
||||||
@RequestMapping("${openapi.apiDocumentation.base-path:}")
|
|
||||||
public interface DefaultApi {
|
public interface DefaultApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "AnotherFake", description = "the AnotherFake API")
|
@Tag(name = "AnotherFake", description = "the AnotherFake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface AnotherFakeApi {
|
public interface AnotherFakeApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,7 +41,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "Fake", description = "the Fake API")
|
@Tag(name = "Fake", description = "the Fake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeApi {
|
public interface FakeApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "FakeClassnameTags123", description = "the FakeClassnameTags123 API")
|
@Tag(name = "FakeClassnameTags123", description = "the FakeClassnameTags123 API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeClassnameTags123Api {
|
public interface FakeClassnameTags123Api {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "Pet", description = "Everything about your Pets")
|
@Tag(name = "Pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "Store", description = "Access to Petstore orders")
|
@Tag(name = "Store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "User", description = "Operations about user")
|
@Tag(name = "User", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "Pet", description = "Everything about your Pets")
|
@Tag(name = "Pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "Store", description = "Access to Petstore orders")
|
@Tag(name = "Store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "User", description = "Operations about user")
|
@Tag(name = "User", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "pet", description = "Everything about your Pets")
|
@Tag(name = "pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "store", description = "Access to Petstore orders")
|
@Tag(name = "store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "user", description = "Operations about user")
|
@Tag(name = "user", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "pet", description = "Everything about your Pets")
|
@Tag(name = "pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "store", description = "Access to Petstore orders")
|
@Tag(name = "store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "user", description = "Operations about user")
|
@Tag(name = "user", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "bar", description = "the bar API")
|
@Tag(name = "bar", description = "the bar API")
|
||||||
@RequestMapping("${openapi.byRefOrValue.base-path:}")
|
|
||||||
public interface BarApi {
|
public interface BarApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.byRefOrValue.base-path:}")
|
||||||
public class BarApiController implements BarApi {
|
public class BarApiController implements BarApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "foo", description = "the foo API")
|
@Tag(name = "foo", description = "the foo API")
|
||||||
@RequestMapping("${openapi.byRefOrValue.base-path:}")
|
|
||||||
public interface FooApi {
|
public interface FooApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.byRefOrValue.base-path:}")
|
||||||
public class FooApiController implements FooApi {
|
public class FooApiController implements FooApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "pet", description = "Everything about your Pets")
|
@Tag(name = "pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class PetApiController implements PetApi {
|
public class PetApiController implements PetApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "store", description = "Access to Petstore orders")
|
@Tag(name = "store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class StoreApiController implements StoreApi {
|
public class StoreApiController implements StoreApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "user", description = "Operations about user")
|
@Tag(name = "user", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -30,6 +30,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class UserApiController implements UserApi {
|
public class UserApiController implements UserApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -33,7 +33,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "pet", description = "Everything about your Pets")
|
@Tag(name = "pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import jakarta.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class PetApiController implements PetApi {
|
public class PetApiController implements PetApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -33,7 +33,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "store", description = "Access to Petstore orders")
|
@Tag(name = "store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import jakarta.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class StoreApiController implements StoreApi {
|
public class StoreApiController implements StoreApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -34,7 +34,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "user", description = "Operations about user")
|
@Tag(name = "user", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -30,6 +30,7 @@ import jakarta.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class UserApiController implements UserApi {
|
public class UserApiController implements UserApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "another-fake", description = "the another-fake API")
|
@Tag(name = "another-fake", description = "the another-fake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface AnotherFakeApi {
|
public interface AnotherFakeApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -28,6 +28,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class AnotherFakeApiController implements AnotherFakeApi {
|
public class AnotherFakeApiController implements AnotherFakeApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -42,7 +42,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "fake", description = "the fake API")
|
@Tag(name = "fake", description = "the fake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeApi {
|
public interface FakeApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -38,6 +38,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class FakeApiController implements FakeApi {
|
public class FakeApiController implements FakeApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeClassnameTestApi {
|
public interface FakeClassnameTestApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -28,6 +28,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "pet", description = "Everything about your Pets")
|
@Tag(name = "pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -30,6 +30,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class PetApiController implements PetApi {
|
public class PetApiController implements PetApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "store", description = "Access to Petstore orders")
|
@Tag(name = "store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class StoreApiController implements StoreApi {
|
public class StoreApiController implements StoreApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "user", description = "Operations about user")
|
@Tag(name = "user", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -30,6 +30,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class UserApiController implements UserApi {
|
public class UserApiController implements UserApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -28,7 +28,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "another-fake", description = "the another-fake API")
|
@Tag(name = "another-fake", description = "the another-fake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface AnotherFakeApi {
|
public interface AnotherFakeApi {
|
||||||
|
|
||||||
default AnotherFakeApiDelegate getDelegate() {
|
default AnotherFakeApiDelegate getDelegate() {
|
||||||
|
@ -27,6 +27,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class AnotherFakeApiController implements AnotherFakeApi {
|
public class AnotherFakeApiController implements AnotherFakeApi {
|
||||||
|
|
||||||
private final AnotherFakeApiDelegate delegate;
|
private final AnotherFakeApiDelegate delegate;
|
||||||
|
@ -38,7 +38,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "fake", description = "the fake API")
|
@Tag(name = "fake", description = "the fake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeApi {
|
public interface FakeApi {
|
||||||
|
|
||||||
default FakeApiDelegate getDelegate() {
|
default FakeApiDelegate getDelegate() {
|
||||||
|
@ -37,6 +37,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class FakeApiController implements FakeApi {
|
public class FakeApiController implements FakeApi {
|
||||||
|
|
||||||
private final FakeApiDelegate delegate;
|
private final FakeApiDelegate delegate;
|
||||||
|
@ -28,7 +28,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeClassnameTestApi {
|
public interface FakeClassnameTestApi {
|
||||||
|
|
||||||
default FakeClassnameTestApiDelegate getDelegate() {
|
default FakeClassnameTestApiDelegate getDelegate() {
|
||||||
|
@ -27,6 +27,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
||||||
|
|
||||||
private final FakeClassnameTestApiDelegate delegate;
|
private final FakeClassnameTestApiDelegate delegate;
|
||||||
|
@ -30,7 +30,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "pet", description = "Everything about your Pets")
|
@Tag(name = "pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
default PetApiDelegate getDelegate() {
|
default PetApiDelegate getDelegate() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class PetApiController implements PetApi {
|
public class PetApiController implements PetApi {
|
||||||
|
|
||||||
private final PetApiDelegate delegate;
|
private final PetApiDelegate delegate;
|
||||||
|
@ -29,7 +29,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "store", description = "Access to Petstore orders")
|
@Tag(name = "store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
default StoreApiDelegate getDelegate() {
|
default StoreApiDelegate getDelegate() {
|
||||||
|
@ -28,6 +28,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class StoreApiController implements StoreApi {
|
public class StoreApiController implements StoreApi {
|
||||||
|
|
||||||
private final StoreApiDelegate delegate;
|
private final StoreApiDelegate delegate;
|
||||||
|
@ -30,7 +30,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "user", description = "Operations about user")
|
@Tag(name = "user", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
default UserApiDelegate getDelegate() {
|
default UserApiDelegate getDelegate() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class UserApiController implements UserApi {
|
public class UserApiController implements UserApi {
|
||||||
|
|
||||||
private final UserApiDelegate delegate;
|
private final UserApiDelegate delegate;
|
||||||
|
@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "another-fake", description = "the another-fake API")
|
@Tag(name = "another-fake", description = "the another-fake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface AnotherFakeApi {
|
public interface AnotherFakeApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -28,6 +28,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class AnotherFakeApiController implements AnotherFakeApi {
|
public class AnotherFakeApiController implements AnotherFakeApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -42,7 +42,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "fake", description = "the fake API")
|
@Tag(name = "fake", description = "the fake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeApi {
|
public interface FakeApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -38,6 +38,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class FakeApiController implements FakeApi {
|
public class FakeApiController implements FakeApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeClassnameTestApi {
|
public interface FakeClassnameTestApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -28,6 +28,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "pet", description = "Everything about your Pets")
|
@Tag(name = "pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -30,6 +30,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class PetApiController implements PetApi {
|
public class PetApiController implements PetApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "store", description = "Access to Petstore orders")
|
@Tag(name = "store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class StoreApiController implements StoreApi {
|
public class StoreApiController implements StoreApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "user", description = "Operations about user")
|
@Tag(name = "user", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -30,6 +30,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class UserApiController implements UserApi {
|
public class UserApiController implements UserApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "another-fake", description = "the another-fake API")
|
@Tag(name = "another-fake", description = "the another-fake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface AnotherFakeApi {
|
public interface AnotherFakeApi {
|
||||||
|
|
||||||
default AnotherFakeApiDelegate getDelegate() {
|
default AnotherFakeApiDelegate getDelegate() {
|
||||||
|
@ -27,6 +27,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class AnotherFakeApiController implements AnotherFakeApi {
|
public class AnotherFakeApiController implements AnotherFakeApi {
|
||||||
|
|
||||||
private final AnotherFakeApiDelegate delegate;
|
private final AnotherFakeApiDelegate delegate;
|
||||||
|
@ -42,7 +42,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "fake", description = "the fake API")
|
@Tag(name = "fake", description = "the fake API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeApi {
|
public interface FakeApi {
|
||||||
|
|
||||||
default FakeApiDelegate getDelegate() {
|
default FakeApiDelegate getDelegate() {
|
||||||
|
@ -37,6 +37,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class FakeApiController implements FakeApi {
|
public class FakeApiController implements FakeApi {
|
||||||
|
|
||||||
private final FakeApiDelegate delegate;
|
private final FakeApiDelegate delegate;
|
||||||
|
@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface FakeClassnameTestApi {
|
public interface FakeClassnameTestApi {
|
||||||
|
|
||||||
default FakeClassnameTestApiDelegate getDelegate() {
|
default FakeClassnameTestApiDelegate getDelegate() {
|
||||||
|
@ -27,6 +27,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
||||||
|
|
||||||
private final FakeClassnameTestApiDelegate delegate;
|
private final FakeClassnameTestApiDelegate delegate;
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "pet", description = "Everything about your Pets")
|
@Tag(name = "pet", description = "Everything about your Pets")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
default PetApiDelegate getDelegate() {
|
default PetApiDelegate getDelegate() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class PetApiController implements PetApi {
|
public class PetApiController implements PetApi {
|
||||||
|
|
||||||
private final PetApiDelegate delegate;
|
private final PetApiDelegate delegate;
|
||||||
|
@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "store", description = "Access to Petstore orders")
|
@Tag(name = "store", description = "Access to Petstore orders")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
default StoreApiDelegate getDelegate() {
|
default StoreApiDelegate getDelegate() {
|
||||||
|
@ -28,6 +28,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class StoreApiController implements StoreApi {
|
public class StoreApiController implements StoreApi {
|
||||||
|
|
||||||
private final StoreApiDelegate delegate;
|
private final StoreApiDelegate delegate;
|
||||||
|
@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@Tag(name = "user", description = "Operations about user")
|
@Tag(name = "user", description = "Operations about user")
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
default UserApiDelegate getDelegate() {
|
default UserApiDelegate getDelegate() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class UserApiController implements UserApi {
|
public class UserApiController implements UserApi {
|
||||||
|
|
||||||
private final UserApiDelegate delegate;
|
private final UserApiDelegate delegate;
|
||||||
|
@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class PetApiController implements PetApi {
|
public class PetApiController implements PetApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Controller
|
@Controller
|
||||||
|
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
public class StoreApiController implements StoreApi {
|
public class StoreApiController implements StoreApi {
|
||||||
|
|
||||||
private final NativeWebRequest request;
|
private final NativeWebRequest request;
|
||||||
|
@ -25,7 +25,6 @@ import javax.annotation.Generated;
|
|||||||
|
|
||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
@Validated
|
@Validated
|
||||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
|
|
||||||
default Optional<NativeWebRequest> getRequest() {
|
default Optional<NativeWebRequest> getRequest() {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user