|
|
@ -244,7 +244,7 @@ namespace EShopSample.Web |
|
|
|
|
|
|
|
|
private void ConfigureSwaggerServices(IServiceCollection services) |
|
|
private void ConfigureSwaggerServices(IServiceCollection services) |
|
|
{ |
|
|
{ |
|
|
services.AddSwaggerGen( |
|
|
services.AddAbpSwaggerGen( |
|
|
options => |
|
|
options => |
|
|
{ |
|
|
{ |
|
|
options.SwaggerDoc("v1", new OpenApiInfo { Title = "EShopSample API", Version = "v1" }); |
|
|
options.SwaggerDoc("v1", new OpenApiInfo { Title = "EShopSample API", Version = "v1" }); |
|
|
@ -286,7 +286,7 @@ namespace EShopSample.Web |
|
|
app.UseIdentityServer(); |
|
|
app.UseIdentityServer(); |
|
|
app.UseAuthorization(); |
|
|
app.UseAuthorization(); |
|
|
app.UseSwagger(); |
|
|
app.UseSwagger(); |
|
|
app.UseSwaggerUI(options => |
|
|
app.UseAbpSwaggerUI(options => |
|
|
{ |
|
|
{ |
|
|
options.SwaggerEndpoint("/swagger/v1/swagger.json", "EShopSample API"); |
|
|
options.SwaggerEndpoint("/swagger/v1/swagger.json", "EShopSample API"); |
|
|
}); |
|
|
}); |
|
|
|