Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Advanced ASP.NET Web API 2.2

via LinkedIn Learning


Take your knowledge of ASP.NET Web API to the next level. Learn about dependency injection, versioning, OData, working with cookies, and more.

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.


  • Building web APIs
  • What you should know
1. Dependency Injection in Web API
  • What is dependency injection?
  • Resolving dependencies with Unity
  • Configuring the dependency resolver
  • Scope of a dependency
2. Cross-Origin Requests in Web API
  • What is CORS?
  • Enabling CORS
  • Setting CORS origins and HTTP methods
  • Creating a custom CORS policy
3. Versioning APIs
  • Why API versioning?
  • Creating the first versioned controller
  • Route versioning
  • Query string versioning
  • Version header versioning
4. Web API HTTP Message Handlers
  • What is a message handler?
  • Creating a custom message handler
  • X-HTTP-Method-Override header
  • Adding a custom response header
5. OData in Web API
  • Setting up the environment
  • Configuring the OData endpoint
  • Creating the first OData controller
  • Setting up a database
  • Reading entities
  • Creating and reading a single entity
  • Updating and deleting an entity
6. Cookies in Web API
  • What is a cookie?
  • Setting and getting cookies in Web API
  • Cookies using message handlers
7. Web API Hosting
  • IIS hosting
  • Self-hosting
  • Where to go next

Taught by

Ervis Trupja

Related Courses


Start your review of Advanced ASP.NET Web API 2.2

Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free