I am using SwaggerHub to integrate to Azure API Management.
Unfortunately SwaggerHub overrides the Web API URL suffix with the basePath (added in swagger).
The basePath for my testing API (used in API Management)should be empty (/).
In API Management I would like to add a version to the WEB API URL (which is the URL used by the subscriber) like /v1/.
So the following example: host: mytestapi.azurewebsites.net
will be saved in API Management as
Web Service URL : mytestapi.azurewebsites.net
Web API Url Suffix : / (here I would like to use an version like /v1 which doesn’t exist in mytestapi
But it should be set like the following :
Web Service URL : mytestapi.azurewebsites.net/
Web API Url Suffix : /v1 (should not be touched by SwaggerHub)
Any ideas how I could handle this?
Thank you for your post. You can use versioning in Azure API Management, not the Web API Url Suffix: https://docs.microsoft.com/en-us/azure/api-management/api-management-get-started-publish-versions
But, unfortunately, currently, SwaggerHub doesn't provide an option to integrate APIs with a specific version of Azure API Management.