File tree Expand file tree Collapse file tree
src/Services/Payment/Payment.API Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments