question

TaylorRussell-2373 avatar image
0 Votes"
TaylorRussell-2373 asked PramodValavala-MSFT answered

Import App service into API managment Operations not found

I have been attempting to have APIM import our API which resides on app service. The app service has an open API specification on the endpoint /api-docs but when the API is imported to APIM the operations are not being created as expected. The operations have been wildcarded rather than created based on the specification.

125004-apim1.png

Does the api specification need to be available on a different endpoint to /api-docs to be automatically picked up?

I have checked that the open api specification can be imported sucessfully if I edit the API in APIM, go to operations, go to add and edit the open api specification pasting in the json reponse from the /api-docs endpoint of the app service. This does work but is manual and I would like to be able to have APIM update each time the API changes with the corresponding operations.

125005-apim2.png


azure-api-management
apim1.png (25.3 KiB)
apim2.png (32.3 KiB)
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.

1 Answer

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered

@TaylorRussell-2373 APIM tries to fetch the OpenAPI Specification defined on the App Service resource if available. Otherwise, it just creates generic operations like you've observed.

125870-image.png



image.png (72.8 KiB)
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.