# Conventional and Attribute Routing

Conventional routing builds every address from one pattern; attribute routing gives each action its own address with \[Route\] and \[HttpGet\]. Constraints such as {id:int} decide which addresses match.

![Cheat sheet: Conventional and Attribute Routing](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/058f7e2bae6c4dfeb2bdce738a62537c.webp)

- Category: ASP.NET Core
- Level: Journeyman
- Tags: aspnet-core, Attribute Routing, Conventional Routing, c-sharp, Route Constraint, Route Template
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/routing-in-aspnet-core-conventional-and-attribute-routing-cheat-sheet
