Building Web APIs with ASP.NET Core

Learn how to build RESTful HTTP services with ASP.NET Web API framework. Gain hands-on experience in creating, consuming, and securing web services. 

Building Web APIs with ASP.NET Core
Instructor-led Training

Course Description

This course provides an introduction to Microsoft’s ASPNET Web API framework for building RESTful HTTP services. It begins by explaining the benefits of a RESTful HTTP service. Then, through a combination of demonstrations and labs, the course proceeds to teach the student how to implement a RESTful HTTP service. By the end of the course, the student will have hands on experience with building and consuming a web service that can read and write complex data types over HTTP.

About this Course

Module 1 – Introduction to the ASP.NET Web API Framework  

Description: This module provides an introduction to the ASP.NET Web API framework.  The student will learn how the Web API framework fits into Microsoft’s overall ASP.NET framework. They will also learn the benefits of using a RESTful HTTP service. Finally, they will learn how to use Fiddler to test a web service that was written using the ASP.NET Web API framework.  

Module 2 – Building a Simple HTTP Service to GET data  

Description: In this module the student will become familiar with the various HTTP response codes and their meanings. They will learn how to return the appropriate HTTP response codes using IHttpActionResult. Also, they will learn about the built-in Web API Help Page. Finally, they will learn how to install Swagger into their application. 

Module 3 – Adding Ability to POST, PUT and DELETE Data with an HTTP Service  

Description: In this module the student will become familiar with parameter binding and model binding. Also, they will learn how to integrate Code First Entity Framework with a web service. They will learn how to use a web service to create, read, update and delete (CRUD) data from a SQL Server database by implementing POST, GET, PUT and DELETE methods. Finally, they will learn how to modify the database structure that was created by Entity Framework. 

Module 4 – Adding Validation and Handling Errors in an HTTP Service  

Description:  In this module the student will learn how to validate data.  They will also learn how to use and create action filters for error handling. Finally, they will learn how to use custom routing to work with complex data types. 

Module 5 – Securing an HTTP Service  

Description: This module introduces the student to different methods of authentication and discusses the difference between authentication and authorization. In this module the student will learn how to use action filters for authentication and authorization. Also, they will learn how to use basic authentication and OAuth 2.0 to secure an HTTP service. 

Module 6 – Consuming an HTTP Service (Duration 90 Minutes) 

Description: In this module the student will learn how to programmatically consume an HTTP service. First they will learn to consume a service using the HttpClient class in the .NET framework and then they will learn to consume a service directly from an Html webpage by using JavaScript. 

 

2 Days

Need to Train a Team?

Contact us to schedule a dedicated class for your team.