
Aspnet Minimal Api Openapi
The aspnet-minimal-api-openapi skill assists .NET developers in building ASP.NET Minimal API endpoints with comprehensive OpenAPI/Swagger documentation by providing patterns for organizing endpoints, defining strongly-typed request/response models, and generating accurate API schemas. It solves the problem of creating well-documented APIs with minimal boilerplate by leveraging .NET 9's built-in OpenAPI support and C# language features like records and nullable annotations. The skill guides developers through best practices for endpoint grouping, type handling, validation, and documentation generation.
- skills.sh installs
- 9.2K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill aspnet-minimal-api-openapi --agent claude-codeInstalls into .claude/skills of the current project.
Files
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 standards
- Apply
[Required]and other validation attributes to enforce constraints - Use the ProblemDetailsService and StatusCodePages to get standard error responses
Type Handling
- Use strongly-typed route parameters with explicit type binding
- Use
Results<T1, T2>to represent multiple response types - Return
TypedResultsinstead ofResultsfor strongly-typed responses - Leverage C# 10+ features like nullable annotations and init-only properties
OpenAPI Documentation
Sponsors
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Backend & APIs, Git & Pull Requests, Documentation, AI & Agent Building, .NET & C#
More from github/awesome-copilot
All 318- Finnish Humanizer9.2K
- Arch Linux Triage9.1K
- Breakdown Epic Pm9.1K
- Quasi Coder9.1K
- Technology Stack Blueprint Generator9K
- Create Technical Spike9K
- Microsoft Skill Creator9K
- Snowflake Semanticview9K
- Finalize Agent Prompt9K
- Fluentui Blazor9K
- Vscode Ext Commands9K
- Power Bi Model Design Review9K
- Aspire9K
- Csharp Nunit9K
- Copilot Instructions Blueprint Generator9K
- Breakdown Epic Arch9K
- Remember Interactive Programming9K
- Convert Plaintext To Md9K
- Github Copilot Starter9K
- Repo Story Time9K
- Create Github Issues For Unmet Specification Requirements8.9K
- Create Github Pull Request From Specification8.9K
- What Context Needed8.9K
- Update Markdown File Index8.9K