dotnet-webapi
仓库创建 2026年2月4日最近提交 14 小时前SkillHot 收录 20 天前
▸ 精选理由
覆盖端点、错误处理中间件与 Swagger 集成,适合实战开发与文档化。
这个 Skill 做什么
生成与修改符合 HTTP 语义并带 OpenAPI 元数据的 ASP.NET Core Web API。
生成或修改符合 HTTP 语义且带 OpenAPI/Swagger 元数据的 ASP.NET Core Web API 接口。适合新增接口、完善文档、写 .http 测试或搭建全局错误处理中间件时使用。强调语义正确、文档齐全和规范的错误处理,不负责 EF Core 优化、前端或 gRPC/SignalR 相关工作。
▸ 展开 SKILL.md 英文原文
Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling. USE FOR: adding new API endpoints (controllers or minimal APIs), wiring up OpenAPI/Swagger, creating .http test files, setting up global error handling middleware. DO NOT USE FOR: general C# coding style, EF Core data access or query optimization (use optimizing-ef-core-queries), frontend/Blazor work, gRPC services, or SignalR hubs.
4.8k
Stars
351
Forks
40
仓库内 Skill
+610
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-aspnetcore/skills/dotnet-webapi/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-aspnetcore/skills/dotnet-webapi/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# ASP.NET Core Web API Produce well-structured ASP.NET Core Web API endpoints with proper HTTP semantics, OpenAPI documentation, and error handling. ## When to Use Use this skill when working on ASP.NET Core HTTP APIs, including: - adding or modifying Web API endpoints implemented with controllers or minimal APIs; - wiring up OpenAPI/Swagger metadata and endpoint documentation; - defining request/response DTOs and consistent HTTP status code behavior; - adding `.http` files or similar request-based API testing artifacts; - configuring centralized API error handling middleware or exception mapping. ## When Not to Use Do not use this skill for: - general C# coding style or non-API refac
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有