File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/Startup Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,24 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
76
76
// Swagger - Enable this line and the related lines in Configure method to enable swagger UI
77
77
services . AddSwaggerGen ( options =>
78
78
{
79
- options . SwaggerDoc ( "v1" , new OpenApiInfo ( ) { Title = "AbpProjectName API" , Version = "v1" } ) ;
79
+ options . SwaggerDoc ( "v1" , new OpenApiInfo
80
+ {
81
+ Version = "v1" ,
82
+ Title = "AbpProjectName API" ,
83
+ Description = "AbpProjectName" ,
84
+ // uncomment if needed TermsOfService = new Uri("https://example.com/terms"),
85
+ Contact = new OpenApiContact
86
+ {
87
+ Name = "AbpProjectName" ,
88
+ Email = string . Empty ,
89
+ Url = new Uri ( "https://twitter.com/aspboilerplate" ) ,
90
+ } ,
91
+ License = new OpenApiLicense
92
+ {
93
+ Name = "MIT License" ,
94
+ Url = new Uri ( "https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/LICENSE" ) ,
95
+ }
96
+ } ) ;
80
97
options . DocInclusionPredicate ( ( docName , description ) => true ) ;
81
98
82
99
// Define the BearerAuth scheme that's in use
You can’t perform that action at this time.
0 commit comments