Building Web APIs with ASP.NET Web API 2.2
2h 19mBeginner2018-10-17
Authors

Jonathan "J." Tower
Microsoft MVP, Software Architect
Course details
Learn how to connect web and mobile applications to back-end servers and databases in your applications using ASP.NET Web API 2.2, a popular framework for building web APIs on top of the .NET Framework. In this course, join Jonathan "J." Tower as he steps through how to use this framework to efficiently create RESTful services. Learn how routing works with Web API to ensure APIs work as planned and are easily consumed by remote applications. Discover how data is modeled in Web API, along with how to build business logic for your API. Plus, learn about handling errors, securing your services, and documenting and testing your APIs.
Learning objectives
Convention-based routing
Binding your code to an HTTP request
Validating models
Using attributes to route requests
Customizing attribute routes
Data serialization and model binding
Error handling
Using exception filters and exception loggers
API documentation and testing
Securing your API
Learning objectives
Convention-based routing
Binding your code to an HTTP request
Validating models
Using attributes to route requests
Customizing attribute routes
Data serialization and model binding
Error handling
Using exception filters and exception loggers
API documentation and testing
Securing your API
Skills covered
ASP.NET Web APIEntity FrameworkASP.NETC#Back-End Web DevelopmentProjectWeb DevelopmentOpen SourceMicrosoft
Concepts
0. Introduction
- 01 - The power of Web APIs
- 02 - What you should know
- 03 - Technical specifics and setup
1. Controllers and Actions
- 04 - Convention-based routing
- 05 - Parameter binding conventions
- 06 - Parameter binding attributes
- 07 - HTTP verb attributes
- 08 - Return values
- 09 - Validating models
- 10 - Using formats besides JSON
2. Routing
- 11 - Routing table
- 12 - Attribute routing
- 13 - Customizing attribute routes
3. Data Serialization and Model Binding
- 14 - Models and DTOs
- 15 - CRUD operations with Entity Framework
- 16 - Useful Json.NET settings
- 17 - Reference LoopHandling in action
4. Error Handling
- 18 - Using HttpResponseException
- 19 - Using exception filters
- 20 - Using exception loggers
- 21 - Global exception handler
5. API Documentation and Testing
- 22 - Documenting with help pages
- 23 - Documenting with Swashbuckle and Swagger
- 24 - API testing client Postman
6. Security
- 25 - Authorize attribute
- 26 - AllowAnonymous attribute
- 27 - Setting user principal
- 28 - Overview of JSON web tokens
- 29 - JWT in action
Conclusion
- 30 - Next steps
Related courses
Related learn paths
- Getting Started as an ASP.NET Developer
- Advance your ASP.NET Developer skills
- Prepare for the MTA: Software Development Fundamentals Exam (98-361)
- Become a MEAN Javascript Developer
- Getting Started as an ASP.NET Core Developer
- Explore Web Development with Node.js
- Become a Back-End Web Developer
- Explore App Development with the MERN Stack