Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure API Management and API Versioning

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?

like image 992
puri Avatar asked Sep 26 '22 10:09

puri


1 Answers

There are two ways to achieve that.

  1. 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.
  2. 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.

https://docs.microsoft.com/en-us/azure/api-management/api-management-faq#how-do-i-use-api-versioning-in-api-management

like image 142
Vitaliy Kurokhtin Avatar answered Sep 29 '22 15:09

Vitaliy Kurokhtin