« Scalar » : différence entre les versions
Apparence
Ligne 14 : | Ligne 14 : | ||
} | } | ||
</filebox> | </filebox> | ||
URL: {{boxx|http://localhost:xxxx/scalar}} |
Version du 18 janvier 2025 à 11:19
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
}
|