-
-
Notifications
You must be signed in to change notification settings - Fork 525
Support for Spring WebMvc.fn #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @nlochschmidt, This is a new feature added since 5.2 Release. For the moment, we are still focusing on the core functionality of the library. |
Ok thanks. I actually would love to prototype this, however since I don't have a massive amount of time, I was wondering which approach might be most interesting to the maintainers of springdoc. I guess it is probably possible to get the root However the main question I have now is where we should attach the OpenAPI3 annotations or whether we should skip the annotation and directly let the developer add OpenAPI values to the RouterFunctions somehow. The latter could be possible by adding a Maybe @poutsma has an idea on how we could make this work best? I haven't done anything with the reactive stack yet, but the RouterFunctions implementation looks pretty much identical. So likely the implementation in SpringDoc will be very similar as well. |
I don't know much about OpenAPI, but any kind of router functions inspection should indeed use the visitor mechanism. |
The support is added and available with the latest stable release. |
Great! Thank you so much 👍 |
You have a note on https://springdoc.org/ saying:
However, I haven't seen any mention on supporting WebMvc.fn (classic servlets): https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#webmvc-fn
Do you already have an idea on how this could be supported? Given that this approach doesn't have a convenient place to put any annotations, I wonder how feasible it actually is.
Since the Functional Endpoints for Servlets are now pretty much stable, I am guessing that more people are going to ask for this.
As a side-note, here are two examples on how other libraries are solving this problem:
meta
dslThe text was updated successfully, but these errors were encountered: