Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.68k stars 5.1k forks source link

[Feature Request] Swagger for Azure Functions #1348

Open tombuildsstuff opened 7 years ago

tombuildsstuff commented 7 years ago

👋

We've had a feature request come in to add support for Azure Functions. I've taken a quick look at the Go SDK and the Swagger repository and I can't see either the SDK or the Swagger for this service, either within an App Service Plan or standalone (although I might have missed it and I'd love to be wrong 😄).

If it's not already present - would it be possible to add the Swagger for Azure Functions so that the SDK can be generated?

Thanks! :)

cc @marstr

tombuildsstuff commented 7 years ago

👋

Just to clarify: this request is for the Swagger for both the App Service and non-App Service versions of Azure Functions (presumably they're different?)

In order for us to manage expectations - is there a rough timeline for when this support is likely to be added? :)

Thanks!

marstr commented 7 years ago

@sergey-shandar @salameer we got anything for @tombuildsstuff?

tombuildsstuff commented 7 years ago

ping @sergey-shandar @salameer :)

sergey-shandar commented 7 years ago

@marstr @tombuildsstuff I'm not aware of any swagger specification for Azure Functions. We need to speak with Azure Functions team.

sergey-shandar commented 7 years ago

@kirthik do you have any update on it? Or who we should ask for Azure Functions specs?

radu-matei commented 7 years ago

Hi, everyone! Is there any update on this issue?

Thanks!

tombuildsstuff commented 6 years ago

ping @sergey-shandar @kirthik - is there any update available here? :)

lindydonna commented 6 years ago

@tombuildsstuff I'm a former member of the Azure Functions team and am interested in the TF provider you're working on!

There is no separate REST API for Azure Functions, as it is essentially a runtime layer that sits on top of App Service. The important difference is that only Function Apps (apps with kind of functionApp) can use the Consumption SKU.

So, you should be able to simply use the App Service APIs and simply customize a few properties.

See the following ARM template examples:

lindydonna commented 6 years ago

CC @davidebbo