The previous chapter went through the implementation of the HTTP layer of the web service. Although the core functionalities of the service are already in place, there are still some refinements to cover. This chapter provides a walk-through of some additional implementations that will be a part of the catalog web service, such as soft deleting resources, the HATEOAS approach, adding a response-time middleware, and some of the best practices for asynchronous code in ASP.NET Core. More specifically, it will cover the following topics:
- Implementing the soft delete technique
- Implementing HATEOAS
- An overview of asynchronous code in ASP.NET Core
- Measuring the response time of APIs using middleware
The code present in this chapter is available in the following GitHub repository: https://github.com/PacktPublishing/Hands-On-RESTful-Web-Services-with...