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

Federick J
  • 478
  • 5
  • 16
Karan Sharma
  • 475
  • 1
  • 5
  • 16
  • 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
  • 216,225
  • 63
  • 350
  • 396
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