Advanced ASP.NET Web API 2.2
2h 10mAdvanced2019-09-25
Authors

Ervis Trupja
Full-Stack .NET Web Developer with a mathematical background
Course details
ASP.NET Web API 2.2—a framework for building web APIs on top of the .NET Framework—can be a great choice for developers looking to expose their data and services. In this advanced course, Ervis Trupja helps you take your knowledge of this popular framework to the next level. Ervis dives into the topic of dependency injection in Web API, explaining how to resolve dependencies with Unity. He also digs into cross-origin requests and demonstrates how to create a custom cross-origin resource sharing (CORS) policy. Plus, learn how to version APIs without breaking existing features, create custom message handlers, host a Web API app in an IIS server, tackle self-hosting and more.
Learning objectives
Resolving dependencies with Unity
The scope of a dependency
Enabling CORS
Creating a custom CORS policy
Route versioning
Creating a custom message handler
Creating, reading, updating, and deleting entities
Setting and getting cookies in Web API
IIS hosting and self-hosting
Learning objectives
Resolving dependencies with Unity
The scope of a dependency
Enabling CORS
Creating a custom CORS policy
Route versioning
Creating a custom message handler
Creating, reading, updating, and deleting entities
Setting and getting cookies in Web API
IIS hosting and self-hosting
Skills covered
ASP.NET Web APIEntity FrameworkASP.NETC#Back-End Web DevelopmentFull-Stack Web DevelopmentAdvancedFront-End Web DevelopmentWeb DevelopmentOpen SourceMicrosoft
Concepts
0. Introduction
- 01 - Building web APIs
- 02 - What you should know
1. Dependency Injection in Web API
- 03 - What is dependency injection
- 04 - Resolving dependencies with Unity
- 05 - Configuring the dependency resolver
- 06 - Scope of a dependency
2. Cross-Origin Requests in Web API
- 07 - What is CORS
- 08 - Enabling CORS
- 09 - Setting CORS origins and HTTP methods
- 10 - Creating a custom CORS policy
3. Versioning APIs
- 11 - Why API versioning
- 12 - Creating the first versioned controller
- 13 - Route versioning
- 14 - Query string versioning
- 15 - Version header versioning
4. Web API HTTP Message Handlers
- 16 - What is a message handler
- 17 - Creating a custom message handler
- 18 - X-HTTP-Method-Override header
- 19 - Adding a custom response header
5. OData in Web API
- 20 - Setting up the environment
- 21 - Configuring the OData endpoint
- 22 - Creating the first OData controller
- 23 - Setting up a database
- 24 - Reading entities
- 25 - Creating and reading a single entity
- 26 - Updating and deleting an entity
6. Cookies in Web API
- 27 - What is a cookie
- 28 - Setting and getting cookies in Web API
- 29 - Cookies using message handlers
7. Web API Hosting
- 30 - IIS hosting
- 31 - Self-hosting
Conclusion
- 32 - Where to go next