I am browsing the HTTP API via Play, and to manage the changes related to the compatibility gap, the URL contains the version number. Currently, it looks like this:
GET /api/v1/someMethod com.foo.Api.someMethod()
When I make changes to the output of one of the methods, I would like to support v2. However, for most methods, the behavior is identical, so I don't care which version is used. I tried to modify the above line as follows:
GET /api/v:version/someMethod com.foo.Api.someMethod()
But playback fails to compile with the error Missing parameter in call definition: version .
I know. I did not use the version parameter in the call because I did not need to! Is there any reasonable way to achieve what I will do here to make Play skip this check or put a wildcard on a route that was not written as a parameter?
(I suppose if I could not add a parameter to the method definition and then ignore it, but I would prefer to avoid this if possible.)
source share