Closed bvarent closed 9 years ago
Honestly, URI-based versioning is an anti-pattern. The only reasons we support it out-of-the-box are:
Appending the version segment is terrible; the last item in the URI path should be the resource you are fetching, not metadata.
situation
As stated in the docs, and verifiable in the code:
Also, the version segment is always _pre_pended to the route.
request
I would like to have an option to get the version segment appended instead of prepended. And to have it applicable to a child route. This way I could keep my route configuration nested. And I wouldn't have to specify an uri configuration key for each resource.
example case
Desired route:
/module-name/api/v1/some-resource/1234
discussion
Do you think this is useful and makes sense? I would be happy to code it.