This chapter describes the routing functionalities of ASP.NET Core. The routing part of the framework is designed to provide a dynamic routing system that's fully customizable and overridable to cover most of the use cases of a web service. Here, we will discover how to use conventional and attribute routing approaches, and then we will dig into the use of routing constraints in order to match complex rules and provide higher customization.
In this chapter, we will cover the following topics:
- A brief overview of the routing system
- Conventional routing versus attribute routing
- Binding routing parameters
- Routing constraints
- Custom attribute routing and custom routing constraints
The topics covered in this chapter provide some basic knowledge around the routing system of ASP.NET Core and how to use the routing engine of ASP.NET Core to cover all the use cases...