Chapter 5: The MVC Pattern for Web APIs
As we saw in the previous chapter, the Model View Controller pattern is probably one of the most extensively adapted architectural patterns for displaying web user interfaces because it matches the concept behind HTTP and the web almost to perfection.
In this chapter, we cover the web API version of ASP.NET Core, which is a crucial part of most modern technology stacks. Moreover, we use those technologies and the patterns learned in this chapter throughout the book. Avoiding user interfaces makes code easier to follow. Web APIs are used in projects of all types and sizes, from microservices to mobile apps.
In this chapter, we will cover the following topics:
- An overview of REST
- Anatomy of a web API