How to import Azure API App which contains the basic authentication into API Management

Viewed 597

I have deployed ASP.NETCore 2.1 code into Azure App Service with Basic Authentication. After that I have imported this API App into Azure API Management, then I can see all API actions in GUID format instead of original operations.

And tried to import the Azure API using Open API Specification, then it is giving the below error.

The OpenAPI specification of this demo-api-dev App should contain 'host' value.

So, can anyone suggest on this

1 Answers

I think the core issue here is that Swashbuckle doesn't auto-generate the host value in the Swagger file. I think the answer for this issue will be the same as the answer to this related question

Effectively, we need to give Swashbuckle a few more hints about configuring itself by giving it an IDocumentFilter.

Related