Is there a way to create a Azure Sql Database and then expose it as a rest API so you may call restful calls to CRUD tables with OData?
5
-
3It would be good if exists some recent (2017) blog posting about how to Expose Azure SQL tables using OData, being consumed by Xamarin.Forms, WPF, or ASP.Net MVCTony– Tony2017-01-20 00:50:41 +00:00Commented Jan 20, 2017 at 0:50
-
2Skyvia Connect easily and with no coding exposes SQL Azure data via OData REST API. In addition, it does not require any drivers or client libraries and offers useful features such as built-in security layer and detailed logging.user7489118– user74891182017-01-31 15:23:18 +00:00Commented Jan 31, 2017 at 15:23
-
1It is unfortunate that links in Microsoft's odata service are dead. Likely meaning this service is no longer being offered. The only solution is to write custom http/https apis.NoumanQ– NoumanQ2021-02-09 17:10:01 +00:00Commented Feb 9, 2021 at 17:10
-
is this problem still unresolved?mas– mas2021-04-06 05:43:36 +00:00Commented Apr 6, 2021 at 5:43
-
This should be closed, if it is looking for a "How To" then there is extensive detail on how to setup OData in MS Docs, its pretty easy, but there is no difference between Azure Sql Db and any other database. Create a Web API project, add in your EF DbContext, then add your OData Service Implementation. There are 3rd party wizards but the code from first principals in minimal in ASP. Net Core. This is a good start: github.com/OData/…Chris Schaller– Chris Schaller2021-09-02 15:49:05 +00:00Commented Sep 2, 2021 at 15:49
Add a comment
|
1 Answer
You will have to break this down into two steps
Create the Azure SQL DB
Expose the SQL DB with OData
You can automate it completely by combining these two into a Single Azure Bicep/ARM template which will create the DB, create an AppService plan to host the ASP.NET OData web app and deploy the code. You will also have to think about how you want to control user access.
1 Comment
Sting
This is actually a good answer upvote here. Interestingly, Azure SQL Database seemed to have Odata hooks built in back around 2010 but Microsoft silently removed that functionality.