Browse Source

Removed swagger from Payment.api

pull/367/head
Ramón Tomás 7 years ago
parent
commit
eb38172abf
1 changed files with 0 additions and 21 deletions
  1. +0
    -21
      src/Services/Payment/Payment.API/Startup.cs

+ 0
- 21
src/Services/Payment/Payment.API/Startup.cs View File

@ -76,19 +76,6 @@ namespace Payment.API
checks.AddValueTaskCheck("HTTP Endpoint", () => new ValueTask<IHealthCheckResult>(HealthCheckResult.Healthy("Ok"))); checks.AddValueTaskCheck("HTTP Endpoint", () => new ValueTask<IHealthCheckResult>(HealthCheckResult.Healthy("Ok")));
}); });
// Add framework services.
services.AddSwaggerGen(options =>
{
options.DescribeAllEnumsAsStrings();
options.SwaggerDoc("v1", new Swashbuckle.AspNetCore.Swagger.Info
{
Title = "eShopOnContainers - Payment HTTP API",
Version = "v1",
Description = "The Payment Microservice HTTP API. This is a Data-Driven/CRUD microservice sample",
TermsOfService = "Terms Of Service"
});
});
RegisterEventBus(services); RegisterEventBus(services);
var container = new ContainerBuilder(); var container = new ContainerBuilder();
@ -105,14 +92,6 @@ namespace Payment.API
app.UsePathBase(pathBase); app.UsePathBase(pathBase);
} }
app.UseMvcWithDefaultRoute();
app.UseSwagger()
.UseSwaggerUI(c =>
{
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "My API V1");
});
ConfigureEventBus(app); ConfigureEventBus(app);
} }


Loading…
Cancel
Save