Take your knowledge of ASP.NET Web API to the next level. Learn about dependency injection, versioning, OData, working with cookies, and more.
Overview
Syllabus
Introduction
- Building web APIs
- What you should know
- What is dependency injection?
- Resolving dependencies with Unity
- Configuring the dependency resolver
- Scope of a dependency
- What is CORS?
- Enabling CORS
- Setting CORS origins and HTTP methods
- Creating a custom CORS policy
- Why API versioning?
- Creating the first versioned controller
- Route versioning
- Query string versioning
- Version header versioning
- What is a message handler?
- Creating a custom message handler
- X-HTTP-Method-Override header
- Adding a custom response header
- 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
- What is a cookie?
- Setting and getting cookies in Web API
- Cookies using message handlers
- IIS hosting
- Self-hosting
- Where to go next
Taught by
Ervis Trupja