Analyzer::CSharp::MinimalApiSupport
Constants
request.Headers[TokenHeader] / [FromHeader(Name = TokenHeader)]: a
key held in a string constant.
Map(pattern, …) and the extensions that wrap it with no method filter:
MapHealthChecks("/health"), YARP's MapForwarder("/x/{id}", …).
Map<Verb> may carry an explicit generic argument — Carter's
app.MapPut<Person>("/", …) and the typed MapGet<T> helpers some
libraries ship. Without the optional <…> the route literal was never
reached and the registration produced no endpoint at all.
A static … MapTodosApi(this RouteGroupBuilder group) extension method:
the routes it registers on group take the prefix of whichever
MapGroup(...) it is called on, possibly from another file —
app.MapGroup("/public/todos").MapTodosApi(); app.MapGroup("/private/todos").MapTodosApi();