How to change the service root in webapi odata v3?

281 Views Asked by At

Have webapi odata v3 endpoint implemented with Microsoft.AspNet.WebApi.OData, exposed under API management, how do I change the service root path, instead of returning the azurewebsite one return the api management URL.

1

There are 1 best solutions below

1
Darrel Miller On BEST ANSWER

Try using the <redirect-content-urls/> policy in an outbound policy to update the URLs. If that doesn't work as you need, you can use the <find-and-replace/> policy. https://learn.microsoft.com/en-us/azure/api-management/api-management-transformation-policies#MaskURLSContent