|
|
@ -118,6 +118,7 @@ namespace MyCompanyName.MyProjectName |
|
|
{ |
|
|
{ |
|
|
options.SwaggerDoc("v1", new OpenApiInfo {Title = "MyProjectName API", Version = "v1"}); |
|
|
options.SwaggerDoc("v1", new OpenApiInfo {Title = "MyProjectName API", Version = "v1"}); |
|
|
options.DocInclusionPredicate((docName, description) => true); |
|
|
options.DocInclusionPredicate((docName, description) => true); |
|
|
|
|
|
options.CustomSchemaIds(type => type.FullName); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -195,7 +196,7 @@ namespace MyCompanyName.MyProjectName |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
app.UseCorrelationId(); |
|
|
app.UseCorrelationId(); |
|
|
app.UseVirtualFiles(); |
|
|
app.UseStaticFiles(); |
|
|
app.UseRouting(); |
|
|
app.UseRouting(); |
|
|
app.UseCors(DefaultCorsPolicyName); |
|
|
app.UseCors(DefaultCorsPolicyName); |
|
|
app.UseAuthentication(); |
|
|
app.UseAuthentication(); |
|
|
|