forked from loafle/openapi-generator-original
* add spring support for SSE conform specs see https://github.com/OpenAPITools/openapi-generator/issues/6123 for the ongoing discussion * extend generator option documentation * applied review suggestions * regenerated samples * regenerated docu * fix code style: removed tabs
This commit is contained in:
@@ -56,6 +56,7 @@ public interface AnotherFakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Client> call123testSpecialTags(
|
||||
@ApiParam(value = "client model", required = true) @Valid @RequestBody Mono<Client> client,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
|
||||
@@ -66,6 +66,7 @@ public interface FakeApi {
|
||||
consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> createXmlItem(
|
||||
@ApiParam(value = "XmlItem Body", required = true) @Valid @RequestBody Mono<XmlItem> xmlItem,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -98,6 +99,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Boolean> fakeOuterBooleanSerialize(
|
||||
@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Mono<Boolean> body,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -130,6 +132,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<OuterComposite> fakeOuterCompositeSerialize(
|
||||
@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) Mono<OuterComposite> outerComposite,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -162,6 +165,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<BigDecimal> fakeOuterNumberSerialize(
|
||||
@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) Mono<BigDecimal> body,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -194,6 +198,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<String> fakeOuterStringSerialize(
|
||||
@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) Mono<String> body,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -224,6 +229,7 @@ public interface FakeApi {
|
||||
produces = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<ResponseObjectWithDifferentFieldNames> responseObjectDifferentNames(
|
||||
@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -254,6 +260,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> testBodyWithFileSchema(
|
||||
@ApiParam(value = "", required = true) @Valid @RequestBody Mono<FileSchemaTestClass> fileSchemaTestClass,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -284,6 +291,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> testBodyWithQueryParams(
|
||||
@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,
|
||||
@ApiParam(value = "", required = true) @Valid @RequestBody Mono<User> user,
|
||||
@@ -317,6 +325,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Client> testClientModel(
|
||||
@ApiParam(value = "client model", required = true) @Valid @RequestBody Mono<Client> client,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -365,6 +374,7 @@ public interface FakeApi {
|
||||
consumes = { "application/x-www-form-urlencoded" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
|
||||
default Mono<Void> testEndpointParameters(
|
||||
@ApiParam(value = "None", required = true) @Valid @RequestParam(value = "number", required = true) BigDecimal number,
|
||||
@ApiParam(value = "None", required = true) @Valid @RequestParam(value = "double", required = true) Double _double,
|
||||
@@ -417,6 +427,7 @@ public interface FakeApi {
|
||||
consumes = { "application/x-www-form-urlencoded" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
|
||||
default Mono<Void> testEnumParameters(
|
||||
@ApiParam(value = "Header parameter enum test (string array)", allowableValues = ">, $") @RequestHeader(value = "enum_header_string_array", required = false) List<String> enumHeaderStringArray,
|
||||
@ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString,
|
||||
@@ -458,6 +469,7 @@ public interface FakeApi {
|
||||
value = "/fake"
|
||||
)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
|
||||
default Mono<Void> testGroupParameters(
|
||||
@NotNull @ApiParam(value = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,
|
||||
@NotNull @ApiParam(value = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,
|
||||
@@ -493,6 +505,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> testInlineAdditionalProperties(
|
||||
@ApiParam(value = "request body", required = true) @Valid @RequestBody Mono<Map<String, String>> requestBody,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -524,6 +537,7 @@ public interface FakeApi {
|
||||
consumes = { "application/x-www-form-urlencoded" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> testJsonFormData(
|
||||
@ApiParam(value = "field1", required = true) @Valid @RequestParam(value = "param", required = true) String param,
|
||||
@ApiParam(value = "field2", required = true) @Valid @RequestParam(value = "param2", required = true) String param2,
|
||||
@@ -587,6 +601,7 @@ public interface FakeApi {
|
||||
value = "/fake/test-query-parameters"
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> testQueryParameterCollectionFormat(
|
||||
@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List<String> pipe,
|
||||
@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List<String> http,
|
||||
@@ -620,6 +635,7 @@ public interface FakeApi {
|
||||
produces = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Integer> testWithResultExample(
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
) {
|
||||
@@ -659,6 +675,7 @@ public interface FakeApi {
|
||||
consumes = { "multipart/form-data" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<ModelApiResponse> uploadFileWithRequiredFile(
|
||||
@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
|
||||
@ApiParam(value = "file to upload", required = true) @RequestPart(value = "requiredFile", required = true) Flux<Part> requiredFile,
|
||||
|
||||
@@ -59,6 +59,7 @@ public interface FakeClassnameTestApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Client> testClassname(
|
||||
@ApiParam(value = "client model", required = true) @Valid @RequestBody Mono<Client> client,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
|
||||
@@ -64,6 +64,7 @@ public interface PetApi {
|
||||
consumes = { "application/json", "application/xml" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> addPet(
|
||||
@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Mono<Pet> pet,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -102,6 +103,7 @@ public interface PetApi {
|
||||
value = "/pet/{petId}"
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> deletePet(
|
||||
@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,
|
||||
@ApiParam(value = "") @RequestHeader(value = "api_key", required = false) String apiKey,
|
||||
@@ -143,6 +145,7 @@ public interface PetApi {
|
||||
produces = { "application/xml", "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Flux<Pet>> findPetsByStatus(
|
||||
@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List<String> status,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -185,6 +188,7 @@ public interface PetApi {
|
||||
produces = { "application/xml", "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Flux<Pet>> findPetsByTags(
|
||||
@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set<String> tags,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -223,6 +227,7 @@ public interface PetApi {
|
||||
produces = { "application/xml", "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Pet> getPetById(
|
||||
@ApiParam(value = "ID of pet to return", required = true) @PathVariable("petId") Long petId,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -265,6 +270,7 @@ public interface PetApi {
|
||||
consumes = { "application/json", "application/xml" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> updatePet(
|
||||
@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Mono<Pet> pet,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -303,6 +309,7 @@ public interface PetApi {
|
||||
consumes = { "application/x-www-form-urlencoded" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)
|
||||
|
||||
default Mono<Void> updatePetWithForm(
|
||||
@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,
|
||||
@ApiParam(value = "Updated name of the pet") @Valid @RequestParam(value = "name", required = false) String name,
|
||||
@@ -345,6 +352,7 @@ public interface PetApi {
|
||||
consumes = { "multipart/form-data" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<ModelApiResponse> uploadFile(
|
||||
@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
|
||||
@ApiParam(value = "Additional data to pass to server") @Valid @RequestParam(value = "additionalMetadata", required = false) String additionalMetadata,
|
||||
|
||||
@@ -56,6 +56,7 @@ public interface StoreApi {
|
||||
value = "/store/order/{order_id}"
|
||||
)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
|
||||
default Mono<Void> deleteOrder(
|
||||
@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -90,6 +91,7 @@ public interface StoreApi {
|
||||
produces = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Map<String, Integer>> getInventory(
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
) {
|
||||
@@ -124,6 +126,7 @@ public interface StoreApi {
|
||||
produces = { "application/xml", "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Order> getOrderById(
|
||||
@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -158,6 +161,7 @@ public interface StoreApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Order> placeOrder(
|
||||
@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Mono<Order> order,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
|
||||
@@ -55,6 +55,7 @@ public interface UserApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> createUser(
|
||||
@ApiParam(value = "Created user object", required = true) @Valid @RequestBody Mono<User> user,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -85,6 +86,7 @@ public interface UserApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> createUsersWithArrayInput(
|
||||
@ApiParam(value = "List of user object", required = true) @Valid @RequestBody Flux<User> user,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -115,6 +117,7 @@ public interface UserApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> createUsersWithListInput(
|
||||
@ApiParam(value = "List of user object", required = true) @Valid @RequestBody Flux<User> user,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -146,6 +149,7 @@ public interface UserApi {
|
||||
value = "/user/{username}"
|
||||
)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
|
||||
default Mono<Void> deleteUser(
|
||||
@ApiParam(value = "The name that needs to be deleted", required = true) @PathVariable("username") String username,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -181,6 +185,7 @@ public interface UserApi {
|
||||
produces = { "application/xml", "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<User> getUserByName(
|
||||
@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username,
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
@@ -215,6 +220,7 @@ public interface UserApi {
|
||||
produces = { "application/xml", "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<String> loginUser(
|
||||
@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,
|
||||
@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password,
|
||||
@@ -244,6 +250,7 @@ public interface UserApi {
|
||||
value = "/user/logout"
|
||||
)
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
|
||||
default Mono<Void> logoutUser(
|
||||
@ApiIgnore final ServerWebExchange exchange
|
||||
) {
|
||||
@@ -276,6 +283,7 @@ public interface UserApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
|
||||
default Mono<Void> updateUser(
|
||||
@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,
|
||||
@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody Mono<User> user,
|
||||
|
||||
Reference in New Issue
Block a user