ASP.NET Core Web API
Guides the design, implementation, and modification of ASP.NET Core Web API endpoints with standard HTTP semantics, OpenAPI documentation, and robust error handling.
This skill provides expert guidance for building production-ready ASP.NET Core Web APIs using modern C# patterns. It helps developers establish consistent conventions across Minimal APIs and Controller-based architectures, enforce immutable request and response DTO design with sealed records, integrate native OpenAPI documentation, and implement standard HTTP status codes, error handling, and cancellation token propagation.
Key Features
01Generates immutable DTOs using sealed records and proper DateTimeOffset handling
02Configures OpenAPI documentation using native .NET 9+ capabilities or Swashbuckle
03Supports both Minimal APIs and Controller architectures with consistent patterns
04Ensures cancellation token forwarding across asynchronous endpoints and queries
050 GitHub stars
06Enforces correct HTTP status codes, location headers, and TypedResults signatures
Use Cases
01Setting up standardized API error handling, response status codes, and HTTP test files
02Generating request/response DTOs with validation rules and OpenAPI summary documentation
03Adding new RESTful endpoints to existing ASP.NET Core Minimal API or Controller projects