The feature request is to support generating a spring boot server stub based on the non-blocking Spring WebFlux framework.
add a new sub-template via -l spring --library spring-webflux
The straightforward approach would be following the annotated controller pattern, it would mean using Mono
The functional endpoints flavour appears to require much more effort to implement, and it could be another sub template if it really makes sense to support it.
The feature shall have dependency on Spring Boot 2.0.0 release, which is work-in-progress, but is soon due for first release. It is needed for the WebFlux auto configuration in the generated Spring Boot project.
Yes. A simple option should be enough, no need to pull a full library
Has there been any update on adding this option to generate a SpringBoot Reactive Server Stub using WebFlux? I saw the dependency is added to the pom.xml on the spring-boot library generation for SpringBoot 2.0.0, but I don't believe it was auto configured for WebFlux.
+1
+1
Is there any progress? @simingweng
+1
Is there any progress?
going to assign this to myself to work on it.
@HugoMario is not it possible to generate from an api
```@RequestMapping(value = "/user", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
@ApiOperation(value = "Get Test Mono Api", nickname = "getTestData")
@ResponseBody
public Mono
@RequestParam(required = false, defaultValue = "0") final Integer userId,
@RequestParam(required = false) final Guid guidObjectJson,
@RequestHeader HttpHeaders httpHeaders) {
return testDataService.getData(userId, guidObjectJson);
}
``
The corresponding client withmvn generate-sources`?
@sbilello , no sure about it, i think that is something that can be customized in an own project.
btw, sorry for so late reply :/
Any update?
any update on this?
any update on this?
Well, I don't use swagger but I changed to the openapi code gen library to do that
Most helpful comment
Has there been any update on adding this option to generate a SpringBoot Reactive Server Stub using WebFlux? I saw the dependency is added to the pom.xml on the spring-boot library generation for SpringBoot 2.0.0, but I don't believe it was auto configured for WebFlux.