Skip to content

Commit 8c810ad

Browse files
Minor changes in SwaggerEndpoints for each microservice.
1 parent bf40b4b commit 8c810ad

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Services/Basket/Basket.API/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
199199
app.UseSwagger()
200200
.UseSwaggerUI(c =>
201201
{
202-
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "My API V1");
202+
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Basket.API V1");
203203
c.ConfigureOAuth2("basketswaggerui", "", "", "Basket Swagger UI");
204204
});
205205

src/Services/Catalog/Catalog.API/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
198198
app.UseSwagger()
199199
.UseSwaggerUI(c =>
200200
{
201-
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
201+
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Catalog.API V1");
202202
});
203203

204204
ConfigureEventBus(app);

src/Services/Location/Locations.API/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
171171
app.UseSwagger()
172172
.UseSwaggerUI(c =>
173173
{
174-
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "My API V1");
174+
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Locations.API V1");
175175
c.ConfigureOAuth2("locationsswaggerui", "", "", "Locations Swagger UI");
176176
});
177177

src/Services/Marketing/Marketing.API/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env,ILoggerFa
203203
app.UseSwagger()
204204
.UseSwaggerUI(c =>
205205
{
206-
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "My API V1");
206+
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Marketing.API V1");
207207
c.ConfigureOAuth2("marketingswaggerui", "", "", "Marketing Swagger UI");
208208
});
209209

src/Services/Ordering/Ordering.API/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
225225
app.UseSwagger()
226226
.UseSwaggerUI(c =>
227227
{
228-
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "My API V1");
228+
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Ordering.API V1");
229229
c.ConfigureOAuth2("orderingswaggerui", "", "", "Ordering Swagger UI");
230230
});
231231

0 commit comments

Comments
 (0)