-
Couldn't load subscription status.
- Fork 38.8k
Closed
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
Stéphane Daviet opened SPR-15913 and commented
I would like to manage the version of my REST API in the URL, something like v1/my_resource and get all the controllers under a same package exposed under the same version path. I was seeking for an elegant way of doing this without hardly coding the version part in all the controllers (like @RequestMapping("/v1/myresource")). I would like to know if applying the @RequestMapping at the package level (in an package-info.java) is an idea that is worth trying? If yes, I would gladly try to provide a pull request.
Affects: 4.3.10
Issue Links:
- support for providing a path component on a package-info [SPR-14667] #19231 support for providing a path component on a package-info ("duplicates")
- Ability to provide an external base path for controllers [SPR-16336] #20883 Ability to provide an external base path for controllers ("is superseded by")
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