Skip to content

Commit eb38172

Browse files
committed
Removed swagger from Payment.api
1 parent ec5aee5 commit eb38172

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/Services/Payment/Payment.API/Startup.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,6 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
7676
checks.AddValueTaskCheck("HTTP Endpoint", () => new ValueTask<IHealthCheckResult>(HealthCheckResult.Healthy("Ok")));
7777
});
7878

79-
// Add framework services.
80-
services.AddSwaggerGen(options =>
81-
{
82-
options.DescribeAllEnumsAsStrings();
83-
options.SwaggerDoc("v1", new Swashbuckle.AspNetCore.Swagger.Info
84-
{
85-
Title = "eShopOnContainers - Payment HTTP API",
86-
Version = "v1",
87-
Description = "The Payment Microservice HTTP API. This is a Data-Driven/CRUD microservice sample",
88-
TermsOfService = "Terms Of Service"
89-
});
90-
});
91-
9279
RegisterEventBus(services);
9380

9481
var container = new ContainerBuilder();
@@ -105,14 +92,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
10592
app.UsePathBase(pathBase);
10693
}
10794

108-
app.UseMvcWithDefaultRoute();
109-
110-
app.UseSwagger()
111-
.UseSwaggerUI(c =>
112-
{
113-
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "My API V1");
114-
});
115-
11695
ConfigureEventBus(app);
11796
}
11897

0 commit comments

Comments
 (0)