endpoint metadata
Extra information attached to an endpoint, such as tags, accepted and produced types or authorization requirements, used by middleware and OpenAPI.
In more detail
OpenAPI generation, authorization and rate limiting all read it. Minimal APIs add it with calls such as .WithTags("Products"); controllers use attributes.
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")).
- OpenAPI — A standard, language-neutral format for describing an HTTP API: its paths, operations, parameters, request and response schemas, errors and security.
- 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.
Taught in
- Building Routes with Minimal APIs — Modern .NET Core, C# & Enterprise Microservices
- Comparing Controllers and Minimal APIs — Modern .NET Core, C# & Enterprise Microservices