Select theme:
The Open Data protocol (OData) is a common way to expose a database as a REST API. Radzen Blazor Studio provides first class support for OData services. It scaffolds for you:
In the following tutorial we will show how to:
The tutorial uses the public Northwind OData API available at https://services.odata.org/Experimental/Northwind/Northwind.svc
.
Northwind
. The name must be a valid C# identifier. It is used for namespaces and service class names.https://services.odata.org/Experimental/Northwind/Northwind.svc
. Radzen Blazor Studio will:
NorthwindService
class which can fetch data from the Northwind OData service.Categories.razor
page which will list the categories from the Northwind OData service.Here is how create a OData Data Source for the MSGraph API.
MSGraph
.https://graph.microsoft.com/v1.0/
.OAuth2
.https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
(replace tenant-id
with your AzureAD tenant id).https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
(replace tenant-id
with your AzureAD tenant id).openid
.IMPORTANT! The MSGraph API has a lot of surface and checking all entities and singletons would lead to scaffolding a few thousand files. Check only the entities that you plan to use.
Radzen is free to use. You can also test the premium features for 15 days.
Download NowSelect theme: