Route Parameter
noun
say it: “ROWT puh-RAM-ih-ter” /raʊt pəˈræmɪtər/
A named placeholder in a route, such as {id}, whose value from the address is passed to the action.
What is Route Parameter?
A route parameter is a placeholder in the route, like {id}, whose value is passed into your handler.
app.MapGet("/users/{userId:guid}", (Guid userId) => quot;User {userId}");
In a sentence
- “The route parameter {id} in products/{id} receives the 7 from /products/7.”
Level: Apprentice · More ASP.NET Core terms at this level
Updated