Compare commits

..

No commits in common. "56e8e3e1d9f02cfd5ce37bb4d51a814dbcea5144" and "8e5003028de562ad787c74423242eeee12bef00c" have entirely different histories.

3 changed files with 6 additions and 7 deletions

View File

@ -98,10 +98,9 @@ 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: 'mars', theme: 'bluePlanet',
} }
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 = "Netina Api Document", Title = "iGarson Api Dacument",
Description = "Netina api for netina clients , like shops , websites and apps", Description = "iGarson api for clients that wana use",
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",