How does Azure API Management help me manage different versions of my API and re-route selected actions from an old version to a new version of the API?
Asked
Active
Viewed 6,256 times
4
-
You also can use a the versioning schema as query parameter. – Amine Charot Mar 20 '19 at 16:49
1 Answers
7
There are two ways to achieve that.
- You can configure your API with a service URL that does not include version segment, like: https://my.api. And then configure version segment on each operation's Rewrite URL template, like have operation with URL template of /resource and Rewrite URL template of /v1/Resource. That way you would be able to change version segment value on each operation separately.
- Or if you'd like to keep "default" version segment in API's service URL then on a selected operations you can set a policy that uses Set backend service to change backend request path.

Community
- 1
- 1

Vitaliy Kurokhtin
- 7,205
- 1
- 19
- 18
-
Though you've slightly reworded the original MSDN article, the overall shape is the same. Without citations your answer plagiarises https://learn.microsoft.com/en-us/azure/api-management/api-management-faq – Dec 10 '16 at 16:09