2 changed files with 24 additions and 24 deletions
@ -1,22 +1,22 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.OpenApi.Models; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace EShopOnAbp.Shared.Hosting.Microservices |
|||
{ |
|||
public static class SwaggerConfigurationHelper |
|||
{ |
|||
public static void Configure( |
|||
ServiceConfigurationContext context, |
|||
string apiTitle |
|||
) |
|||
{ |
|||
context.Services.AddSwaggerGen(options => |
|||
{ |
|||
options.SwaggerDoc("v1", new OpenApiInfo {Title = apiTitle, Version = "v1"}); |
|||
options.DocInclusionPredicate((docName, description) => true); |
|||
options.CustomSchemaIds(type => type.FullName); |
|||
}); |
|||
} |
|||
} |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.OpenApi.Models; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace EShopOnAbp.Shared.Hosting.AspNetCore |
|||
{ |
|||
public static class SwaggerConfigurationHelper |
|||
{ |
|||
public static void Configure( |
|||
ServiceConfigurationContext context, |
|||
string apiTitle |
|||
) |
|||
{ |
|||
context.Services.AddSwaggerGen(options => |
|||
{ |
|||
options.SwaggerDoc("v1", new OpenApiInfo {Title = apiTitle, Version = "v1"}); |
|||
options.DocInclusionPredicate((docName, description) => true); |
|||
options.CustomSchemaIds(type => type.FullName); |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
@ -1,9 +1,9 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using System.Collections.Generic; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.OpenApi.Models; |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace EShopOnAbp.Shared.Hosting.Gateways |
|||
namespace EShopOnAbp.Shared.Hosting.AspNetCore |
|||
{ |
|||
public static class SwaggerWithAuthConfigurationHelper |
|||
{ |
|||
Loading…
Reference in new issue