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.
This video briefly discusses the history of web services and then introduces REST, with its architectural constraints.
In this video, we will talk about building REST services in .NET, and then we will introduce ASP.NET Web API.
Discuss the changes in ASP.NET Core at a high level.
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.
Initialize the application with required Web API/MVC libraries and add the Data Access project sample in the application.
This video details how to create a controller and run the application. Later, it shows how the application would be connecting to the database.
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.
This video talks about HTTP verbs and their importance in Web API.
This video explains the GET verb implementation.
Implement the Post verb and see how the data is passed at the server and the response is sent back to the client.
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.
This video covers the implementation of the DELETE verb.
In this video, we will implement another HTTP verb, called PATCH.
Retrieve inner resources directly and discuss URI mapping.
How to implement sorting and how to pass the required information to API?
How to implement paging and its execution?
Search is a common functionality for an API. In this video we will see how we should implement it.
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.
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.
This video talks about: what is authentication, various options of authentication, and finally one type authentication for a demo.
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.
OAuth is another protocol for implementation of authentication. In this video, we will see what OAuth is.
This video discusses dependency injection. Get to know how ASP.NET Core supports caching and its default DI container.
What is HTTP Caching and what are ETags and their types? Also, let’s glance through the functioning of ETags.
What is CacheCow? How to use ETag and implement via custom middleware? We also cover configuring the middleware and consuming it.
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?
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?
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.
In this video, we aim to see how to update a resource and what all steps are required for the same.
Aim to delete a resource via an MVC client and the required information to provide the API.
We have retrieved the resources in the first video of this section. Now we will see how to consume the sorting and paging functionality.
Explore how to consume the caching capability and the versioning feature of web API without lot many changes.
Know why URI design is required and best practices around it such as resource identification, its form, unique resource selection, and related resources.
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.
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?
Learn what caching is, its importance, options, and what to use.
What are other common best practices?
Get to know what the touch points of the course are and further reference material.
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.