-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
version
for @RequestMapping and related annotations (@GetMapping
,PostMapping
, etc.). (recommended) - Add the annotation
@Version
, as in Micronaut.
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