At my customers when I create microservices I always add Swagger support, because it easy to test the microservice.
Another create benefit it gives the business also a nice UI to see what to expect.
Problem
Now I am preparing a demo for my session about Reactive Programming, which I will give at Social Connections 14 event next month in Berlin, I was thinking how to add support to my Spring Webflux demo.
But the current Swagger versions doesn’t support Spring Webflux
Solution
After some research I found that Swagger2 will add support for Spring Webflux in version 3.0.0
But there is already a SNAPSHOT in the wild with support.
Add version 3.0.0-SNAPSHOT to your dependencies in your pom.xm
After the dependencies are loaded in your project
Go to or create a SwaggerConfiguration class and add @EnableSwagger2WebFlux to your class
When you start your application head over to the swagger-ui.html and voila.
Happy coding
Docket is part of springfox-spring-web , how it works for you.