minimal-api

安装量: 2.2K
排名: #7905

安装

npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill minimal-api

Minimal APIs (.NET 10) Core Principles Minimal APIs are the default — Use controllers only when migrating legacy code. Minimal APIs are lighter, faster, and compose well with any architecture style. Group endpoints with MapGroup — Never scatter individual MapGet / MapPost calls in Program.cs . Group related endpoints together. Use TypedResults for OpenAPI — TypedResults.Ok(value) gives you compile-time type safety AND correct OpenAPI documentation. Results.Ok(value) does not. Metadata over comments — Use .WithName() , .WithTags() , .WithSummary() to document endpoints. The metadata feeds into OpenAPI specs. Patterns Endpoint Group Auto-Discovery (Required Pattern) Every endpoint group lives in its own file and implements IEndpointGroup . A single app.MapEndpoints() call in Program.cs discovers and registers all groups automatically. Program.cs never changes when you add new endpoint groups. Show more Installs 1.1K Repository codewithmukesh/…aude-kit GitHub Stars 700 First Seen Mar 13, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

← 返回排行榜