5
The MVC Pattern for Web APIs
In the previous chapter, we explored displaying web user interfaces with the Model View Controller (MVC) pattern using Razor. This chapter covers the web API version of the ASP.NET Core MVC framework, which is a crucial part of most modern technology stacks. A web API allows us to send data to the user, usually another machine, instead of a user interface, as we did in the previous chapter. Moreover, we use the technologies and 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, passing by single-page applications (SPA).
In this chapter, we cover the following topics: ...
Get An Atypical ASP.NET Core 6 Design Patterns Guide - Second Edition 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.