Scalar
An open-source browser interface that renders an OpenAPI document as interactive API documentation and can send test requests.
A public documentation UI maps your API for anyone unless it is restricted.
In more detail
app.MapScalarApiReference() adds it over the built-in document. It grants no access of its own: requests from it still pass through authentication and authorization.
Related terms
- OpenAPI — A standard, language-neutral format for describing an HTTP API: its paths, operations, parameters, request and response schemas, errors and security.
- AddOpenApi — The pair of ASP.NET Core calls that registers built-in OpenAPI document generation (AddOpenApi) and exposes the JSON document as an endpoint (MapOpenApi).
Taught in
- OpenAPI Generation in .NET 9 — Modern .NET Core, C# & Enterprise Microservices
- API Documentation UI with Scalar — Modern .NET Core, C# & Enterprise Microservices