0

Is there an Azure service to expose the database table to REST API?

I have a table in SQL Server and I want to expose that table via REST API without having to manage any infra or authentication

Jay
  • 382
  • 4
  • 12
Karan Sharma
  • 436
  • 1
  • 5
  • 14
  • https://azure.microsoft.com/en-us/blog/introduction-to-open-data-protocol-odata-and-sql-azure/ – Dai Nov 12 '19 at 00:50

2 Answers2

0

No SQL server does not have a REST api directly, But you can build an OData service with ASP.NET Web API and Entity Framework.

https://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api

Sajeetharan
  • 203,447
  • 57
  • 330
  • 376
0

You can create a class based on the table fields and on getting the table data convert it to List and response it.

To Convert DataTable to List use the link: Found in Stackoverflow