On July 24th we hosted a webinar on “Getting started with ASP.NET Web API” for the Indian region and we’d like to share the presentation and recorded webinar with you now! In the webinar, we explored:
- An intro to the Web API
- How to write your First Web API using Scaffolding
- Consuming Web API in jQuery and IGGrid
- Enabling CORS
- Code First and Repository Pattern in Web API
You can find the recording of the presentation here:
[youtube] width="560" height="315" src="http://www.youtube.com/embed/FHjB1qEoDE8" [/youtube]
And you can also access the presentation slides here.
Some of the questions from the webinar are below. For many of the questions we will write detailed blog posts here on the Infragistics blog, but for now:
How do you create role based authorization in Web API?
We can do authentication and authorization in Web API using the OWIN server and ASP.NET Identity 2.0. To enable it while creating the Web API project you can choose the authentication as shown in the image below:
Does the Web API only work for mobile apps?
No! You can use Web API across clients like web applications, desktop applications and mobile applications.
What do we mean by OData Support in Web API?
In the ASP.NET Web API, you can enable the support of OData by returning the IQueryable. Using the OData fetch query can be applied in the query string. By default ASP.NET Web API has support of OData.
How can we change the content negotiation format?
The client can request for a specific format in the Accept Header as seen here:
Once again, thank you so much for your interest in our webinars – and we look forward to seeing you at a future webinar!