How to serve OpenAPI documentation with Scalar instead of Swagger UI in ASP.NET Core 11
Replace UseSwaggerUI with MapScalarApiReference in ASP.NET Core 11: routing, multiple documents, pre-filled auth, production gating, offline assets, and the Scalar-only OpenAPI extensions that mark endpoints stable or hidden.