cancel
Showing results for 
Search instead for 
Did you mean: 

Save to Azure API Management

Highlighted
Occasional Visitor

Save to Azure API Management

Hi,

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

basePath: /

 

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)

 

 

apimanagement_screenshot.jpg

 

 

Any ideas how I could handle this?

 

Regards

Ortwin

1 REPLY 1
Highlighted
Moderator

Re: Save to Azure API Management

Hi Ortwin,

 

Thank you for your post. You can use versioning in Azure API Management, not the Web API Url Suffixhttps://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. 



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video: