[kotlin-spring] add reactive behavior via Kotlin coroutines (#2934)

* kotlin spring : add reactivity via kotlin's coroutines

* add kotlin spring boot reactive samples

* bug : fix spring version and import for coroutines

* remove exception handler for reactive (webflux doesn't support it)

* add spring milestone repository to maven pom

* add reactive type for list in Api and ApiImpl methodes for mathching body responsive parameter

* fix baseType for ArraySchema

* regenerate samples

* updating documentation
This commit is contained in:
sylvainmoindron
2019-06-02 21:50:45 +02:00
committed by Jim Schubert
parent b74fa4458d
commit 7916f2f880
146 changed files with 3078 additions and 268 deletions

View File

@@ -50,7 +50,7 @@ public interface UserApi {
@ApiResponse(code = 200, message = "successful operation") })
@RequestMapping(value = "/user/createWithArray",
method = RequestMethod.POST)
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux<List> body, ServerWebExchange exchange) {
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux<User> body, ServerWebExchange exchange) {
return getDelegate().createUsersWithArrayInput(body, exchange);
}
@@ -60,7 +60,7 @@ public interface UserApi {
@ApiResponse(code = 200, message = "successful operation") })
@RequestMapping(value = "/user/createWithList",
method = RequestMethod.POST)
default Mono<ResponseEntity<Void>> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux<List> body, ServerWebExchange exchange) {
default Mono<ResponseEntity<Void>> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux<User> body, ServerWebExchange exchange) {
return getDelegate().createUsersWithListInput(body, exchange);
}

View File

@@ -41,7 +41,7 @@ public interface UserApiDelegate {
/**
* @see UserApi#createUsersWithArrayInput
*/
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(Flux<List> body,
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(Flux<User> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
@@ -52,7 +52,7 @@ public interface UserApiDelegate {
/**
* @see UserApi#createUsersWithListInput
*/
default Mono<ResponseEntity<Void>> createUsersWithListInput(Flux<List> body,
default Mono<ResponseEntity<Void>> createUsersWithListInput(Flux<User> body,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);

View File

@@ -1736,8 +1736,6 @@ components:
type: object
type: object
List:
example:
123-list: 123-list
properties:
123-list:
type: string