mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 08:22:45 +00:00
[Spring] Add an option to return success code (#1197)
* Returns status code which defined at Response Object
* Tweak indent
Remove the spacer "{{#async}} ... {{/async}}" "{{^async}} ... {{/async}}"
* Update samples^
* Fix broken indentation
* Update samples
* Revert methodBody.mustache
* Revert "Fix broken indentation"
* This reverts commit 95b6a00f8b.
* Revert "Tweak indent"
* This reverts commit ba2cedc897.
* Revert "Returns status code which defined at Response Object"
* This reverts commit f676a89e23.
* Example contains status code
* Update samples
./bin/spring-all-pestore.sh
* Fix syntax error
* Update samples
* Run bin/utils/ensure-up-to-date
* Make the changes an option `returnSuccessCode`
* Run bin/spring-all-pestore.sh to update samples
* Run ./bin/utils/export_docs_generators.sh
This commit is contained in:
@@ -31,8 +31,8 @@ public interface AnotherFakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Client>> call123testSpecialTags(Mono<Client> client,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"client\" : \"client\"}");
|
||||
|
||||
@@ -40,8 +40,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Boolean>> fakeOuterBooleanSerialize(Mono<Boolean> body,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -51,8 +51,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<OuterComposite>> fakeOuterCompositeSerialize(Mono<OuterComposite> outerComposite,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"my_string\" : \"my_string\", \"my_number\" : 0.80082819046101150206595775671303272247314453125, \"my_boolean\" : true}");
|
||||
@@ -68,8 +68,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<BigDecimal>> fakeOuterNumberSerialize(Mono<BigDecimal> body,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -79,8 +79,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<String>> fakeOuterStringSerialize(Mono<String> body,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -90,8 +90,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> testBodyWithFileSchema(Mono<FileSchemaTestClass> fileSchemaTestClass,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -102,8 +102,8 @@ public interface FakeApiDelegate {
|
||||
default Mono<ResponseEntity<Void>> testBodyWithQueryParams(String query,
|
||||
Mono<User> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -113,8 +113,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Client>> testClientModel(Mono<Client> client,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"client\" : \"client\"}");
|
||||
@@ -143,8 +143,8 @@ public interface FakeApiDelegate {
|
||||
String password,
|
||||
String paramCallback,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -161,8 +161,8 @@ public interface FakeApiDelegate {
|
||||
List<String> enumFormStringArray,
|
||||
String enumFormString,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -177,8 +177,8 @@ public interface FakeApiDelegate {
|
||||
Boolean booleanGroup,
|
||||
Long int64Group,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -188,8 +188,8 @@ public interface FakeApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> testInlineAdditionalProperties(Mono<String> requestBody,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -200,8 +200,8 @@ public interface FakeApiDelegate {
|
||||
default Mono<ResponseEntity<Void>> testJsonFormData(String param,
|
||||
String param2,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -213,8 +213,8 @@ public interface FakeApiDelegate {
|
||||
MultipartFile requiredFile,
|
||||
String additionalMetadata,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\"}");
|
||||
|
||||
@@ -31,8 +31,8 @@ public interface FakeClassnameTestApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Client>> testClassname(Mono<Client> client,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"client\" : \"client\"}");
|
||||
|
||||
@@ -33,8 +33,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> addPet(Mono<Pet> pet,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -45,8 +45,8 @@ public interface PetApiDelegate {
|
||||
default Mono<ResponseEntity<Void>> deletePet(Long petId,
|
||||
String apiKey,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -56,8 +56,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Flux<Pet>>> findPetsByStatus(List<String> status,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\"}");
|
||||
@@ -77,8 +77,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Flux<Pet>>> findPetsByTags(List<String> tags,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\"}");
|
||||
@@ -98,8 +98,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Pet>> getPetById(Long petId,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"name\" : \"doggie\", \"id\" : 0, \"category\" : { \"name\" : \"default-name\", \"id\" : 6 }, \"tags\" : [ { \"name\" : \"name\", \"id\" : 1 }, { \"name\" : \"name\", \"id\" : 1 } ], \"status\" : \"available\"}");
|
||||
@@ -119,8 +119,8 @@ public interface PetApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> updatePet(Mono<Pet> pet,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -132,8 +132,8 @@ public interface PetApiDelegate {
|
||||
String name,
|
||||
String status,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -145,8 +145,8 @@ public interface PetApiDelegate {
|
||||
String additionalMetadata,
|
||||
MultipartFile file,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\"}");
|
||||
|
||||
@@ -32,8 +32,8 @@ public interface StoreApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> deleteOrder(String orderId,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -42,8 +42,8 @@ public interface StoreApiDelegate {
|
||||
* @see StoreApi#getInventory
|
||||
*/
|
||||
default Mono<ResponseEntity<Map<String, Integer>>> getInventory(ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -53,8 +53,8 @@ public interface StoreApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Order>> getOrderById(Long orderId,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\"}");
|
||||
@@ -74,8 +74,8 @@ public interface StoreApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Order>> placeOrder(Mono<Order> order,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\"}");
|
||||
|
||||
@@ -32,8 +32,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> createUser(Mono<User> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -43,8 +43,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(Flux<List> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -54,8 +54,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> createUsersWithListInput(Flux<List> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -65,8 +65,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> deleteUser(String username,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -76,8 +76,8 @@ public interface UserApiDelegate {
|
||||
*/
|
||||
default Mono<ResponseEntity<User>> getUserByName(String username,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
result = ApiUtil.getExampleResponse(exchange, "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\"}");
|
||||
@@ -98,8 +98,8 @@ public interface UserApiDelegate {
|
||||
default Mono<ResponseEntity<String>> loginUser(String username,
|
||||
String password,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -108,8 +108,8 @@ public interface UserApiDelegate {
|
||||
* @see UserApi#logoutUser
|
||||
*/
|
||||
default Mono<ResponseEntity<Void>> logoutUser(ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
@@ -120,8 +120,8 @@ public interface UserApiDelegate {
|
||||
default Mono<ResponseEntity<Void>> updateUser(String username,
|
||||
Mono<User> user,
|
||||
ServerWebExchange exchange) {
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user