minimal-apis
✓通过 Scalar 使用最小 API 和 OpenAPI 文档定义 REST 端点。 使用时机:在 Sorcha 服务中创建或修改 API 端点、添加新路由、配置端点身份验证或记录 API。
SKILL.md
Sorcha uses .NET 10 Minimal APIs exclusively—NEVER MVC controllers. All endpoints are organized via MapGroup() route grouping with extension methods in Endpoints/ folders. OpenAPI documentation uses Scalar (NOT Swagger).
| Route Groups | Shared config for related endpoints | app.MapGroup("/api/v1/wallets").WithTags("Wallets") | | TypedResults | Type-safe return values | Results , NotFound, ValidationProblem> | | OpenAPI Metadata | .WithName(), .WithSummary() | Required on all endpoints |
| Authorization | .RequireAuthorization("Policy") | Apply to groups or individual endpoints | | AllowAnonymous | Public endpoints | .AllowAnonymous() on login routes | | Cache Output | Redis output caching | .CacheOutput(p => p.Expire(...).Tag("tag")) |
通过 Scalar 使用最小 API 和 OpenAPI 文档定义 REST 端点。 使用时机:在 Sorcha 服务中创建或修改 API 端点、添加新路由、配置端点身份验证或记录 API。 来源:stuartf303/sorcha。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/stuartf303/sorcha --skill minimal-apis- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 minimal-apis?
通过 Scalar 使用最小 API 和 OpenAPI 文档定义 REST 端点。 使用时机:在 Sorcha 服务中创建或修改 API 端点、添加新路由、配置端点身份验证或记录 API。 来源:stuartf303/sorcha。
如何安装 minimal-apis?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/stuartf303/sorcha --skill minimal-apis 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/stuartf303/sorcha
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01