From fce771e71fa15ec9b3c6af27bd714ed2bf0823bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oziel=20Guimara=CC=83es=20de=20Paula=20Silva?= Date: Mon, 27 Nov 2023 08:58:25 -0300 Subject: [PATCH] =?UTF-8?q?Alterando=20configura=C3=A7=C3=A3o=20do=20swagg?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EscolaBiblicaDominical/Ebd.Presentation.Api/Startup.cs | 3 ++- EscolaBiblicaDominical/Ebd.Presentation.Api/appsettings.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/EscolaBiblicaDominical/Ebd.Presentation.Api/Startup.cs b/EscolaBiblicaDominical/Ebd.Presentation.Api/Startup.cs index 7924469..708f6f0 100644 --- a/EscolaBiblicaDominical/Ebd.Presentation.Api/Startup.cs +++ b/EscolaBiblicaDominical/Ebd.Presentation.Api/Startup.cs @@ -33,6 +33,7 @@ public void ConfigureServices(IServiceCollection services) services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "Ebd.Presentation.Api", Version = "v1" }); + }); } @@ -47,7 +48,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseSwagger(); app.UseSwaggerUI(c => { - c.SwaggerEndpoint("/swagger/v1/swagger.json", "Ebd.Presentation.Api v1"); + c.SwaggerEndpoint($"{Configuration["AppPath"]}/swagger/v1/swagger.json", "Ebd.Presentation.Api v1"); c.RoutePrefix = string.Empty; }); diff --git a/EscolaBiblicaDominical/Ebd.Presentation.Api/appsettings.json b/EscolaBiblicaDominical/Ebd.Presentation.Api/appsettings.json index 37a2827..83e18c8 100644 --- a/EscolaBiblicaDominical/Ebd.Presentation.Api/appsettings.json +++ b/EscolaBiblicaDominical/Ebd.Presentation.Api/appsettings.json @@ -8,6 +8,7 @@ "RetryCount": 3 } }, + "AppPath": "/ebd", "Logging": { "LogLevel": { "Default": "Information",