swagger-api / swagger-api/swagger-codegen
[Spring] support generating Spring WebFlux-based server stub
@HugoMario is already working on this.
Since Jun 28, 2019.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
The feature request is to support generating a spring boot server stub based on the non-blocking Spring WebFlux framework.
Command line used for generation
add a new sub-template via -l spring --library spring-webflux
Suggest a fix/enhancement
The straightforward approach would be following the annotated controller pattern, it would mean using Mono as type of @RequestBody annotated controller method argument, as well as Mono<ResponseEntity> as return type.
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.