Discovery of endpoints defined using the functional variant of Webflux in Spring Boot 2
See original GitHub issueI’m trying out the combination of Spring Boot 2.0.4.RELEASE and Springfox 3.0.0-SNAPSHOT. Defining endpoints using a class annotated with @RestController
and methods annotated with @GetMapping
etc. works just fine. However, I’m unable to get endpoints defined using the new functional variant of Webflux to be picked up by Springfox. E.g.:
@Configuration
public class RoutingConfiguration {
@Bean
public RouterFunction<ServerResponse> routerFunction(final IntegerHandler integerHandler) {
return route(GET("/api/integer").and(accept(APPLICATION_JSON)), integerHandler::getInteger);
}
}
- Is the functional variant of Webflux supported?
- If so, how does one get Springfox to discover endpoints defined the functional way?
Issue Analytics
- State:
- Created 5 years ago
- Comments:29 (4 by maintainers)
Top Results From Across the Web
Web on Reactive Stack - Spring
At the programming-model level, Java 8 enabled Spring WebFlux to offer functional web endpoints alongside annotated controllers.
Read more >Guide to Spring 5 WebFlux - Baeldung
Spring 5 includes Spring WebFlux, which provides reactive programming support for web applications. · Spring WebFlux internally uses Project ...
Read more >A functional endpoint in Spring WebFlux - Jstobigdata
We will use the standard start.spring.io to generate the starter Spring-Boot-WebFlux project to implement functional endpoints. The most ...
Read more >Building a Reactive RESTful Web Service using Spring Boot ...
1. Set up the Spring WebFlux Project · 2. Include Additional Maven Dependencies · 3. Furnish the Configuration · 4. Define a Model...
Read more >Build Reactive APIs with Spring WebFlux - Okta Developer
Spring Boot 2.0 was a long-awaited release from the good folks at Pivotal. One of its new features is reactive web programming support...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Don’t worry about the lack of documentation, I understand that it takes time to write it.
I tried to create a very simple project with Spring Boot 2.0.4.RELEASE and the latest Springfox 3.0.0-SNAPSHOT. With one endpoint using the functional variant of Webflux. I’ve added the EnableSwagger2Webflux annotation, but I can’t get Springfox to recognize my endpoint. Repo for the test project: https://github.com/jakobkylberg/spring-boot-2-webflux-swagger
If someone can have I quick look it would be very appreciated, maybe I’m missing something obvious.
Hi @dilipkrish, thanks for the Springfox, But I am still facing same issue with functional endpoints. Is there any patch release for that. Please let me know anyone found any solution for this.?
@jakobkylberg did you find any solution for this…? Please help me to get out of this issue.