File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 34
34
{
35
35
36
36
o . EnableAnnotations ( ) ;
37
- o . SwaggerDoc ( nuVersion , new OpenApiInfo { Title = nmApplication , Version = nuVersion } ) ;
37
+ o . SwaggerDoc ( nuVersion , new OpenApiInfo
38
+ {
39
+ Title = Constant . SwaggerTitle ,
40
+ Description = Constant . SwaggerDescription ,
41
+ Version = nuVersion ,
42
+ Contact = new OpenApiContact
43
+ {
44
+ Name = Constant . SwaggerContactName ,
45
+ Url = new Uri ( Constant . SwaggerContactUrl )
46
+ } ,
47
+ License = new OpenApiLicense
48
+ {
49
+ Name = Constant . SwaggerLicenseName ,
50
+ Url = new Uri ( Constant . SwaggerLicenseUrl )
51
+ }
52
+
53
+ } ) ;
54
+
38
55
o . AddSecurityDefinition ( Constant . API_KEY , new OpenApiSecurityScheme
39
56
{
40
57
In = ParameterLocation . Header ,
41
- Description = "Chave de acesso individual disponibilizado para acessar a API" ,
58
+ Description = Constant . SwaggerSecurityDescription ,
42
59
Name = Constant . API_KEY ,
43
60
Type = SecuritySchemeType . ApiKey ,
44
- Scheme = "ApiKeyScheme"
61
+ Scheme = Constant . SwaggerSecurityScheme
45
62
} ) ;
46
63
47
64
o . OperationFilter < SwaggerAllowAnonymousOperationFilter > ( ) ;
You can’t perform that action at this time.
0 commit comments