mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 04:16:12 +00:00
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:
@@ -21,7 +21,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "another-fake", description = "the another-fake API")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface AnotherFakeApi {
|
||||
|
||||
default AnotherFakeApiDelegate getDelegate() {
|
||||
|
||||
@@ -27,6 +27,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class AnotherFakeApiController implements AnotherFakeApi {
|
||||
|
||||
private final AnotherFakeApiDelegate delegate;
|
||||
|
||||
@@ -31,7 +31,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "fake", description = "the fake API")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface FakeApi {
|
||||
|
||||
default FakeApiDelegate getDelegate() {
|
||||
|
||||
@@ -37,6 +37,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class FakeApiController implements FakeApi {
|
||||
|
||||
private final FakeApiDelegate delegate;
|
||||
|
||||
@@ -21,7 +21,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "fake_classname_test", description = "the fake_classname_test API")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface FakeClassnameTestApi {
|
||||
|
||||
default FakeClassnameTestApiDelegate getDelegate() {
|
||||
|
||||
@@ -27,6 +27,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
||||
|
||||
private final FakeClassnameTestApiDelegate delegate;
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "pet", description = "Everything about your Pets")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface PetApi {
|
||||
|
||||
default PetApiDelegate getDelegate() {
|
||||
|
||||
@@ -30,6 +30,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class PetApiController implements PetApi {
|
||||
|
||||
private final PetApiDelegate delegate;
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "store", description = "Access to Petstore orders")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface StoreApi {
|
||||
|
||||
default StoreApiDelegate getDelegate() {
|
||||
|
||||
@@ -28,6 +28,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class StoreApiController implements StoreApi {
|
||||
|
||||
private final StoreApiDelegate delegate;
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "user", description = "Operations about user")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface UserApi {
|
||||
|
||||
default UserApiDelegate getDelegate() {
|
||||
|
||||
@@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class UserApiController implements UserApi {
|
||||
|
||||
private final UserApiDelegate delegate;
|
||||
|
||||
Reference in New Issue
Block a user