« Scalar » : différence entre les versions
Apparence
Aucun résumé des modifications |
|||
Ligne 11 : | Ligne 11 : | ||
{ | { | ||
app.MapOpenApi(); | app.MapOpenApi(); | ||
app.MapScalarApiReference(); | app.MapScalarApiReference(); // add this line | ||
} | } | ||
</filebox> | </filebox> |
Version du 18 janvier 2025 à 11:18
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
}
|