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

Get An Atypical ASP.NET Core 5 Design Patterns Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.