Azure-functions-host: Improve OpenAPI definition generation

Created on 15 May 2017  路  5Comments  路  Source: Azure/azure-functions-host

Currently the API definition generation does not include any happy path that produces a complete API definition. I would like to add at least one path from a blank function to the API definition such that it produces a complete API definition.

OpenAPI

Most helpful comment

Any update on this?

All 5 comments

@soninaren is going to try to hack together a basic prototype this month

Any update on this?

I've spent around two workdays on an Azure function reflecting out a proper Swagger def for .Net. https://github.com/wobba/AzureFunction-SwaggerDefinition Needed it for a customer project and dows pretty much what Swashbuckle does. Might be missing pieces, but covers quite a bit for now.

This is the missing link for amazing integration with tools such as API Management and needs to work for v2 Functions. Supporting attributes such as ProducesResponseType, Produces, and Consumes would make a big difference.

Was this page helpful?
0 / 5 - 0 ratings