Reputation: 37
I have similar question as in this questions Default version for API Management
However the question is old, had there been any recent changes in APIM which allows this behaviour where if you dont pass any versions in header/path/query it routes to latest versions
/api/operation?api-version=1.0 <- Goes to 1.0
/api/operation?api-version=1.1 <- Goes to 1.1
/api/operation <- Goes to 1.1 (Here 1.1. is the latest and if no version is pass in URI it should route to latest one(1.1 in this case))
In my case we are using Azure Function for backend API.
Just to add I am not able to comment on existing question :(
Upvotes: 0
Views: 452
Reputation: 4251
Still the same behavior, you have to provide the Api version. When you add a version to a non-versioned API, an Original version will be automatically created and will respond on the default URL so if you do not provide an Api version the original version will respond to that call.
Upvotes: 1