Scalar
Apparence
ASP.NET Core 9 integration
dotnet add package Scalar.AspNetCore |
Program.cs |
builder.Services.AddOpenApi();
if (app.Environment.IsDevelopment())
{
app.MapOpenApi();
app.MapScalarApiReference(); // add this line
}
|
URL: http://localhost:xxxx/scalar
Properties/launchSettings.json |
{
"profiles": {
"http": {
"launchBrowser": true,
}
}
}
|