Carlos Lopez
Carlos Lopez

Reputation: 74

Azure functions without swagger

Working on a new project and I was asked to assist in configure a azure functions/API. From my understanding you either need to build the project with swagger or OpenAPI config file in some way. Is this untrue ?

Can a C# program run an azure function without either of these implementations ? Using Azure functions V2+

Upvotes: 0

Views: 473

Answers (1)

JayaChatterjee-MSFT
JayaChatterjee-MSFT

Reputation: 959

Yes you can run Azure functions without those implementations ( OpenAPI/Swagger).

You may follow the C# developer guidance : https://learn.microsoft.com/en-us/azure/azure-functions/functions-dotnet-class-library

Check : https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions - for different runtime versions.

Also, if you want to call your function as an API, you may create a HttpTrigger function and call that as an API directly or using httpclient object.

https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=csharp#example

Upvotes: 0

Related Questions