Closed as not planned
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.