Skip to content

Support Versioning in Request Mappings #33599

Closed as not planned
Closed as not planned
@xezzon

Description

@xezzon

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)status: duplicateA duplicate of another issuetype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions