Start here. This is the direct spoken answer to practice first.
Why this question matters
Routing is both framework mechanics and API contract design. A good answer explains how matching works and why route choices affect clients, authorization, OpenAPI, and future compatibility.
ASP.NET Core matches the incoming request path and HTTP method against the endpoints registered in the app. Controllers use attributes like [HttpGet("{id}")], while minimal APIs use mappings like MapGet. The selected endpoint carries metadata such as authorization policies, filters, and parameter binding rules. If multiple routes match equally well, the app can fail with an ambiguous route problem.