Chapter 13: Working with Endpoint Routing

In this chapter, we will talk about the new endpoint routing in ASP.NET Core. We will learn what endpoint routing is, how it works, where it is used, and how you are able to create your own routes to your own endpoints.

In this chapter, we will be covering the following topics:

  • Exploring endpoint routing
  • Creating custom endpoints
  • Creating a more complex endpoint

The topics in this chapter refer to the Routing layer of the ASP.NET Core architecture:

Figure 13.1 – ASP.NET Core architecture

Figure 13.1 – ASP.NET Core architecture

Technical requirements

For this series, we just need to set up a small empty web application:

dotnet new mvc ...

Get Customizing ASP.NET Core 5.0 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.