-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Support Versioning in Request Mappings #33599
Copy link
Copy link
Closed as not planned
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement
Description
Expected effect
Route URLs to different methods based on some characteristics of the URI, request parameter, request header and so on. These should be configurable.
Known solutions
https://medium.com/@AlexanderObregon/a-guide-to-versioning-apis-in-spring-boot-329aae1c495f
I am not satisfied with this solution because it breaks the pattern Convention Over Configuration. I had to do a lot of hard coding.
Reference
https://docs.micronaut.io/latest/guide/index.html#apiVersioning
Expected solution
- Add the element
versionfor @RequestMapping and related annotations (@GetMapping,PostMapping, etc.). (recommended) - Add the annotation
@Version, as in Micronaut.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement