|
@@ -26,10 +26,10 @@ namespace DataVAPI.ConfigureSwagger |
|
|
c.OrderActionsBy(o => o.RelativePath); |
|
|
c.OrderActionsBy(o => o.RelativePath); |
|
|
|
|
|
|
|
|
// 获取xml注释文件的目录 |
|
|
// 获取xml注释文件的目录 |
|
|
var xmlPath = Path.Combine(AppContext.BaseDirectory, "服务API.xml"); |
|
|
|
|
|
|
|
|
var xmlPath = Path.Combine(AppContext.BaseDirectory, "DataVAPI.xml"); |
|
|
c.IncludeXmlComments(xmlPath, true);//默认的第二个参数是false,这个是controller的注释,记得修改 |
|
|
c.IncludeXmlComments(xmlPath, true);//默认的第二个参数是false,这个是controller的注释,记得修改 |
|
|
// 获取xml注释文件的目录 |
|
|
// 获取xml注释文件的目录 |
|
|
var xmlPathModel = Path.Combine(AppContext.BaseDirectory, "服务API.Model.xml"); |
|
|
|
|
|
|
|
|
var xmlPathModel = Path.Combine(AppContext.BaseDirectory, "DataVAPI.Model.xml"); |
|
|
c.IncludeXmlComments(xmlPathModel, true);//默认的第二个参数是false,这个是controller的注释,记得修改 |
|
|
c.IncludeXmlComments(xmlPathModel, true);//默认的第二个参数是false,这个是controller的注释,记得修改 |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|