Learning ASP.NET Web API
3.6 (158 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
754 students enrolled

Learning ASP.NET Web API

Accelerate your skills to build a RESTful Web API with ASP.NET Core
3.6 (158 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
754 students enrolled
Created by Packt Publishing
Last updated 10/2016
English [Auto-generated]
Current price: $51.99 Original price: $74.99 Discount: 31% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 3 hours on-demand video
  • 1 downloadable resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Take a closer look at the redesigned ASP.Net 5
  • Understand the REST basics and its constraints through real-life examples
  • Walk through the building blocks of ASP.NET Web API with scenario-based examples
  • Implement various data transfer operations and content negotiation
  • Deploy security techniques in your application to avoid threats
  • Be guided through advanced topics such as dependency Injection, API versioning, and HTTP caching to build a maintainable application
  • Get tips and best practices to write better, highly scalable, and performant Web API services
Course content
Expand all 42 lectures 02:49:47
+ Introduction to Web APIs
4 lectures 24:27

This video gives an overview of the entire course.

Preview 06:48

This video briefly discusses the history of web services and then introduces REST, with its architectural constraints.

Understanding REST

In this video, we will talk about building REST services in .NET, and then we will introduce ASP.NET Web API.

Introduction to ASP.NET Web API

Discuss the changes in ASP.NET Core at a high level.

What’s New in ASP.NET Core 1.0?
+ Getting Started with the Project
5 lectures 31:25

This video aims to provide the viewers their first hands-on experience on ASP.NET Web API projects with Visual Studio, including setting up the infrastructure, exposing the first API, serialization, and routing.

Preview 06:35

Initialize the application with required Web API/MVC libraries and add the Data Access project sample in the application.

Setting Up the Infrastructure

This video details how to create a controller and run the application. Later, it shows how the application would be connecting to the database.

Creating Web API Controller

This video discusses serialization and explores the options available with ASP.NET Web API.


Routing is a key concept in ASP.NET Web API. We will learn why it is important, its implantation, and its usage.

+ Building the Web API
6 lectures 18:46

This video talks about HTTP verbs and their importance in Web API.

Preview 03:54

This video explains the GET verb implementation.

Implementing GET

Implement the Post verb and see how the data is passed at the server and the response is sent back to the client.

Implementing POST

Implement the PUT verb and see how the data is passed at the server to update an item and the response comes back to the client.

Implementing PUT

This video covers the implementation of the DELETE verb.

Implementing DELETE

In this video, we will implement another HTTP verb, called PATCH.

Implementing PATCH
+ Adding More Features to Web API
4 lectures 16:51

Retrieve inner resources directly and discuss URI mapping.

Preview 05:19

How to implement sorting and how to pass the required information to API?

Implementing Sorting

How to implement paging and its execution?

Implementing Paging

Search is a common functionality for an API. In this video we will see how we should implement it.

Implementing Filters
+ Security in ASP.NET Web API
6 lectures 23:02

What is security and its relevance in ASP.NET Web API?

Preview 04:13

This video deals with SSL and discusses what SSL is. As a developer, you need to make sure that the API is exposed via HTTPS only.

Using SSL

Consuming web APIs hosted at various servers or even third-party APIs is a basic requirement. But can we access that as it is? It requires cross-origin resource sharing.

Cross Origin Resource Sharing (CORS)

This video talks about: what is authentication, various options of authentication, and finally one type authentication for a demo.

Implementing Authentication

Authorization provides the details of accessibility for an authenticated user. We will detail about authorization, the role of claims, authorization policy (which is introduced in ASP.Net Core), and how to implement that.

Implementing Authorization

OAuth is another protocol for implementation of authentication. In this video, we will see what OAuth is.

OAuth and Web API
+ Advanced Topics
5 lectures 20:31

This video discusses dependency injection. Get to know how ASP.NET Core supports caching and its default DI container.

Preview 04:36

What is HTTP Caching and what are ETags and their types? Also, let’s glance through the functioning of ETags.

HTTP Caching

What is CacheCow? How to use ETag and implement via custom middleware? We also cover configuring the middleware and consuming it.

Demo – HTTP Caching

Requirements change with the time and so does our API. But we need to have both backward compatibility and new changes. So, versioning comes into the picture. We will see it in detail.


How to implement various versioning approaches?

Demo – Versioning
+ Consuming the API
6 lectures 17:41

What are the clients and platforms to consume the API? What is the best way to consume an MVC client and how to retrieve the resources?

Preview 05:27

Let’s initiate the POST request to Web API via the MVC client and the required header that needs to be passed. Also, we need to check the status code of the response and verify that the item got created successfully at the server.

Adding New Resources

In this video, we aim to see how to update a resource and what all steps are required for the same.

Updating Resources

Aim to delete a resource via an MVC client and the required information to provide the API.

Deleting Resources

We have retrieved the resources in the first video of this section. Now we will see how to consume the sorting and paging functionality.

Sorting and Paging

Explore how to consume the caching capability and the versioning feature of web API without lot many changes.

Caching and Versioning
+ Tips/Tricks and Best Practices
6 lectures 17:04

Know why URI design is required and best practices around it such as resource identification, its form, unique resource selection, and related resources.

Preview 03:15

Get to know what the best practices around using HTTP verbs are and the common mistakes while using GET and POST verbs. We will also cover the key characteristics of HTTP verbs and a few best practices around that.

HTTP Verbs – What not to do

Learn what the HTTP status codes are, why we should use them, and a few common issues around that. Also, what is the minimum set of status codes that should be used in a well-written Web API service?

Usage of HTTP Status Codes

Learn what caching is, its importance, options, and what to use.

Caching Best Practices

What are other common best practices?

Other Common Practices

Get to know what the touch points of the course are and further reference material.

What’s Next?
  • This example-based video guide is full of pictorial presentations of the core concepts. It contains real-life scenario-based practical examples, and clear step-by-step instructions, as well as tips and best practices.
  • You must know C#, HTML, and CSS, and have some understanding of JavaScript.

Revolutionary changes in the mobile world introduced various type of devices such as smart phones, tablets, and IoT devices, all connected to a network based on a HTTP protocol and HTML 5. This lead to a big push to build REST-based services that expose data over HTTP with content negotiation techniques that can be seamlessly consumed by various devices with different platforms. ASP.NET Web API is the primary framework for .NET developers to build REST-based services using the latest standards and serve the growing need to expose data.

This course takes you on a journey right from the basics and explains the building blocks of Web API through an example application. Starting off with the basics, we discuss REST Constraints when designing an API with a change in the ASP.NET Core framework. Then we explore building blocks such as Routing, URI Controllers, HTTP verbs, and implement REST through examples.

As we move on, we’ll delve into some advanced key topics such as dependency injection, versioning, caching, and more to build a modular, testable and maintainable application. Then we consume the complete API using an MVC client and provide a quick overview of AngularJS Client.

Finally, we develop a Restful API using ASP.Net Core API. We wrap up with a few handy tips and best practices to make robust and scalable APIs. By the end of this course, you will have a thorough knowledge of Web API services and advanced features so you can easily get started.

About The Author

Brij Bhushan Mishra is a 5 times Microsoft MVP, Author, blogger, speaker and .NET geek. He is currently associated with an MNC as Technical Architect/Consultant in Microsoft technologies.  He is also a Microsoft certified Technology Specialist in Web Applications and Windows Communication Foundation Applications. He is very active in community and regularly speaks in various conferences and user groups. Some of his blog posts have been featured on the ASP.NET Microsoft official website and other various online communities. Other than his community activities, he loves exploring new places with his lovely wife.

Who this course is for:
  • This video course is for any ASP.NET web developer who has developed applications with the framework, but do not understand how to work with Web API, or how APIs work in general.