Exploring endpoint routing
To learn about endpoint routing, you need to learn what an endpoint is and what routing is.
The endpoints are the parts of the app that get executed when a route maps the incoming request to it. Let's analyze this definition in a little more detail.
A client usually requests a resource from a server. In most cases, the client is a browser. The resource is defined by a URL, which points to a specific target. In most cases, the target is a web page. It could also be a mobile app that requests specific data from a JSON Web API. What data the app requests is defined in the URL.
This means that the incoming request is also defined by the URL. The executing endpoint, on the other hand, is mapped to a specific route. A route is a URL or a pattern for a URL. ASP.NET Core developers are already familiar with such a route pattern:
app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { Â Â Â Â endpoints.MapControllerRoute...