question

ThomasPow-9184 avatar image
0 Votes"
ThomasPow-9184 asked PramodValavala-MSFT commented

Import Azure Web app as an API

Hi

According to this documentation:
https://docs.microsoft.com/en-us/azure/api-management/import-app-service-as-api
and this example:
https://docs.microsoft.com/en-us/azure/api-management/import-and-publish#import-and-publish-a-backend-api

one can import a web app that has an Open Api specification configured in an API definition, the APIM maps the paths, parameters and responens automaticly and does not use the wildcard type.

I'm creating a web app using Python and Flask, but I'm not sure what is required for the web app to conforme to the open api standard and how azure can recognize the paths?

I have tried using flasgger and also made a openapi.yaml definition in the root folder of the web app but azure does not seem to recognize the paths and instead import the web app using wildcards.

Any advice or documentation on this problem?

Best regards
Thomas

azure-webappsazure-api-management
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ThomasPow-9184 Could you confirm if you have set the publicly accessible URL for the generated spec from flasgger under API Definition?

0 Votes 0 ·

0 Answers