Replies: 2 comments
-
Hello, Would anyone from Micronaut Framework be able to address this issue, please? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Versioning support has already been implemented and described in the documentation https://micronaut-projects.github.io/micronaut-openapi/latest/guide/index.html#versions Also, support for different API versions is implemented using If you have questions, suggestions or problems, please create tickets here: https://github.com/micronaut-projects/micronaut-openapi/issues . Discussions are not reviewed regularly and rarely |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Micronaut has a dedicated annotation @Version for developers to implement their REST API Versioning strategy, and with it, we can put the version number in request headers or in query parameters. That's great. I encountered a problem here, if I wanna put the version number in the request header, how should I configure OpenAPI/Swagger UI to reflect this? The thing here is that different versions of a API Endpoint may have distinct request and response payload structure. What should I do? If I cannot do that, I have to switch back to the URL based versioning strategy, thanks.
Beta Was this translation helpful? Give feedback.
All reactions