swagger-api / swagger-api/swagger-codegen

[Spring] support generating Spring WebFlux-based server stub

Open
#7,217 17 comments 16 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.