ASP.NET Web Api - how to include API version number in the path as routing parameter
How to include API version number v1, v2, v3, etc in the path (like .../v1/... ) and have it:
being used to select proper version of Controller class
carried over to Controller as a parameter (optional)
HTTP Calls
Here is how HTTP calls to different API versions would look like:
/v1/User/SomeAction?param=zzz
/v2/User/SomeAction?param=zzz
....
/vNN/User/SomeAction?param=zzz
Controllers
Now let's take a look at the server side. In most