Advanced ASP.NET Web API 2.2

Advanced ASP.NET Web API 2.2

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 2h 09m | 1.23 GB

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.

Topics include:

  • 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
Table of Contents

1 Building web APIs
2 What you should know
3 What is dependency injection
4 Resolving dependencies with Unity
5 Configuring the dependency resolver
6 Scope of a dependency
7 What is CORS
8 Enabling CORS
9 Setting CORS origins and HTTP methods
10 Creating a custom CORS policy
11 Why API versioning
12 Creating the first versioned controller
13 Route versioning
14 Query string versioning
15 Version header versioning
16 What is a message handler
17 Creating a custom message handler
18 X-HTTP-Method-Override header
19 Adding a custom response header
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
27 What is a cookie
28 Setting and getting cookies in Web API
29 Cookies using message handlers
30 IIS hosting
31 Self-hosting
32 Where to go next