unlimited101
unlimited101

Reputation: 3813

Is it possible to autogenerate an API with Microsoft Azure?

I would like to host a Database and an API-Backend within Azure. But I want to do that without implementing code because I just want to run typical read/write actions.

Is it possible to generate an API for an existent Azure SQL Database? All "Creating API"-Examples I find in the Azure Documentation use ASP.Net or NodeJS. So is autogeneration possible with Azure?

Upvotes: 0

Views: 249

Answers (1)

AVS
AVS

Reputation: 531

As far as I am aware, there is no functionality to automatically provide an API interface over Sql Azure. The REST api that Azure provides is to manage the database, not to access that data.

You can use an Azure web-app to host your WebAPI auto-generated code. In Visual Studio, you can use Entity Framework database first approach to generate the API trivially. You will need to compile and publish it to a web app to get your API going.

You can find a pretty exhaustive tutorial at https://azure.microsoft.com/en-in/documentation/articles/web-sites-dotnet-rest-service-aspnet-api-sql-database/

(skip the MVC section altogether and just use WebAPI and EF)

Upvotes: 1

Related Questions