OpenApi Swagger for Python Azure Function

Dario Antolini 21 Reputation points
2023-11-30T09:52:15.67+00:00

Hi all,

I am writing an Azure Function in Python. I need to create a Swagger file for the API, but the only way to do this with Python seems to be this one:

https://learn.microsoft.com/en-us/azure/azure-functions/functions-openapi-definition

However, the client already has a APIm system, so I cannot choose this solution.

Do you have some suggestion?

Thank you

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2023-11-30T20:50:30.92+00:00

    Dario Antolini Thanks for posting your question in Microsoft Q&A. You are right, for languages such as Python, Java (other than C#), we currently support OpenAPI integration through API Management as described in Expose serverless APIs from HTTP endpoints using Azure API Management.

    For C#, you can use azure-functions-openapi-extension to create swagger but unfortunately, Python is still in the roadmap (similar discussion: Looking for a Python version). If you are interested in this feature, I suggest you submit feedback via https://feedback.azure.com/d365community/forum/9df02822-f224-ec11-b6e6-000d3a4f0da0 and others with similar interests can upvote it too. This will help our product team prioritize the features.

    I hope this helps and let me know if any questions.


    If you found the answer to your question helpful, please take a moment to mark it as Yes for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.