-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Mastering Minimal APIs in ASP.NET Core
By :

According to the official Microsoft documentation available at https://docs.microsoft.com/aspnet/core/fundamentals/routing, the following definition is given for routing:
Routing is responsible for matching incoming HTTP requests and dispatching those requests to the app’s executable endpoints. Endpoints are the app’s units of executable request-handling code. Endpoints are defined in the app and configured when the app starts. The endpoint matching process can extract values from the request’s URL and provide those values for request processing. Using endpoint information from the app, routing is also able to generate URLs that map to endpoints.
In controller-based web APIs, routing is defined via the UseEndpoints()
method in Startup.cs
or using data annotations such as Route
, HttpGet
, HttpPost
, HttpPut
, HttpPatch
, and HttpDelete
right over the action methods.
As mentioned in Chapter 1, Introduction to Minimal APIs in minimal APIs, we define the...