Compare commits

...

3 Commits

3 changed files with 7 additions and 6 deletions

View File

@ -98,9 +98,10 @@ var app = builder.Build();
// Configure the HTTP request pipeline.
//app.UseCustomSwagger(siteSetting.BaseUrl);
app.UseSwagger();
app.UseCustomSwagger(siteSetting.BaseUrl);
app.MapScalarUi();
//app.UseSwagger();
//app.UseSwaggerUI();
if (app.Environment.IsProduction())

View File

@ -27,7 +27,7 @@ public static class ScalarUiConfiguration
<!-- Optional: You can set a full configuration object like this: -->
<script>
var configuration = {
theme: 'bluePlanet',
theme: 'mars',
}
document.getElementById('api-reference').dataset.configuration =

View File

@ -18,9 +18,9 @@ public static class SwaggerConfiguration
new OpenApiInfo
{
Version = "v1",
Title = "iGarson Api Dacument",
Description = "iGarson api for clients that wana use",
License = new OpenApiLicense { Name = "Vira Safir Fanavar " },
Title = "Netina Api Document",
Description = "Netina api for netina clients , like shops , websites and apps",
License = new OpenApiLicense { Name = "Vira Safir Fanavar" },
Contact = new OpenApiContact
{
Name = "Amir Hossein Khademi",