Reputation: 8406
I have an API in Azure with address;
http://webapiapplicationXXXXXXX.azurewebsites.net
and the Swagger UI at
http://webapiapplicationXXXXXXX.azurewebsites.net/swagger/ui/index
Putting this into the Azure API Management gives me an address of:
http://xxxxxxxxxxxx.azure-api.net/Time/api/TimeZoneInfo
I want to see the SwaggerUI. I've tried the obvious URLs but got:
{ "statusCode": 404, "message": "Resource not found" }
What is the URL to see the SwaggerUI when the API is hosted in Azure API Management?
Upvotes: 6
Views: 9177
Reputation: 142014
Usually people don't use the Swagger UI anymore once an API is behind API Management. The reason being that the developer portal provides the equivalent and better functionality.
If you really do want to expose the underlying SwaggerUI then you can create an additional operation in API Management that points to the SwaggerUI. The reason you are getting 404 is because API Management is saying that you are trying to access a resource that is not defined as an API Management operation.
You should be able to create the API operation like this
Upvotes: 6