From the course: Learning ASP.NET Core: MVC, Razor Pages, Web APIs & Other Foundations

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Understanding controller-based APIs and minimal APIs

Understanding controller-based APIs and minimal APIs

- [Instructor] In addition to standalone server-rendered web applications, ASP.NET Core is also great at helping you develop web APIs to deliver data to other applications. There are two different web API project types, controller-based APIs and minimal APIs. There's a lot that's similar between them, but also a few differences. Both are designed to work over HTTP and can be used to build RESTful APIs. REST stands for Representational State Transfer, and is an architectural pattern that uses HTTP verbs and status codes, along with other requests and response elements to manage application data. Both types of Web API can serve data to just about any client application. This can include desktop apps, mobile apps, web apps, or even other APIs. As long as a client can make an HTTP request, they can access data via an ASP.NET Core web API. The difference between the two project types are primarily about how the code is structured and the specific features that are available…

Contents