route group
A set of minimal API endpoints created with MapGroup that share a URL prefix and metadata such as tags, authorization or rate limiting.
In more detail
Anything configured on the group, such as tags or authorization, applies to every endpoint inside it. app.MapGroup("/api/products") then maps each route relative to the prefix.
Related terms
- minimal API — An ASP.NET Core style that declares each route and its handler together, as in app.MapGet("/api/ping", () => Results.Ok("catalog")).
- endpoint metadata — Extra information attached to an endpoint, such as tags, accepted and produced types or authorization requirements, used by middleware and OpenAPI.
Taught in
- Building Routes with Minimal APIs — Modern .NET Core, C# & Enterprise Microservices