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. // Configure the HTTP request pipeline.
//app.UseCustomSwagger(siteSetting.BaseUrl); app.UseCustomSwagger(siteSetting.BaseUrl);
app.UseSwagger();
app.MapScalarUi(); app.MapScalarUi();
//app.UseSwagger();
//app.UseSwaggerUI(); //app.UseSwaggerUI();
if (app.Environment.IsProduction()) if (app.Environment.IsProduction())

View File

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

View File

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