add tag
This commit is contained in:
@@ -37,6 +37,7 @@ namespace rmutr_report
|
||||
};
|
||||
services.AddSingleton(_setting);
|
||||
services.AddControllers();
|
||||
|
||||
services.AddSwaggerGen(c =>
|
||||
{
|
||||
c.SwaggerDoc("reports", new OpenApiInfo {Title = "Reports API", Version = "v1"});
|
||||
@@ -44,7 +45,7 @@ namespace rmutr_report
|
||||
var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
|
||||
var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
|
||||
c.IncludeXmlComments(xmlPath);
|
||||
|
||||
c.EnableAnnotations();
|
||||
// c.MapType(typeof(TimeSpan?), () => new OpenApiSchema
|
||||
// {
|
||||
// Type = "string",
|
||||
|
||||
Reference in New Issue
Block a user