引入minimal api 测试
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-14 14:48:18 +08:00
parent c9a6f8b99b
commit fad9428656
6 changed files with 91 additions and 8 deletions
@@ -36,6 +36,8 @@ namespace IRaCIS.Core.API
options.SwaggerDoc("Image", new OpenApiInfo { Title = "影像模块", Version = "Image" });
options.SwaggerDoc("Reading", new OpenApiInfo { Title = "读片模块", Version = "Reading" });
// Add "General" fallback group for ungrouped APIs
//options.SwaggerDoc("General", new OpenApiInfo { Title = "未分类模块", Version = "General" });
// 接口排序
options.OrderActionsBy(o => o.GroupName);
@@ -47,6 +49,7 @@ namespace IRaCIS.Core.API
.OfType<ApiExplorerSettingsAttribute>()
.Select(attr => attr.GroupName);
//return versions.Any(v => v == docName) || (docName == "General" && !versions.Any());
return versions.Any(v => v.ToString() == docName);
});