aspnet-minimal-api-openapi
仓库创建 2025年6月12日最近提交 6 小时前SkillHot 收录 20 天前
▸ 精选理由
快速产出规范化的 Minimal API 和文档,适合 .NET 后端开发。
这个 Skill 做什么
生成带完整 OpenAPI/Swagger 文档的 ASP.NET Minimal API 端点代码。
帮你用 ASP.NET Minimal API 快速写清楚 endpoint 的类型和路由,同时生成完整的 OpenAPI/Swagger 文档,方便前后端联调或生成客户端代码。适合做轻量 REST 服务、演示接口或交付给 QA 的场景。特点是鼓励按功能分组、用过滤器处理跨切面逻辑,让代码更清晰、文档更规范。
▸ 展开 SKILL.md 英文原文
Create ASP.NET Minimal API endpoints with proper OpenAPI documentation
3.7w
Stars
4.6k
Forks
40
仓库内 Skill
+837
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/github/awesome-copilot/main/skills/aspnet-minimal-api-openapi/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/github/awesome-copilot/main/skills/aspnet-minimal-api-openapi/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# ASP.NET Minimal API with OpenAPI Your goal is to help me create well-structured ASP.NET Minimal API endpoints with correct types and comprehensive OpenAPI/Swagger documentation. ## API Organization - Group related endpoints using `MapGroup()` extension - Use endpoint filters for cross-cutting concerns - Structure larger APIs with separate endpoint classes - Consider using a feature-based folder structure for complex APIs ## Request and Response Types - Define explicit request and response DTOs/models - Create clear model classes with proper validation attributes - Use record types for immutable request/response objects - Use meaningful property names that align with API design standar
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有