{"kind":"Skill","metadata":{"namespace":"community","name":"aspnet-minimal-api-openapi","version":"0.1.0"},"spec":{"description":"Create ASP.NET Minimal API endpoints with proper OpenAPI documentation","files":{"SKILL.md":"---\nname: aspnet-minimal-api-openapi\ndescription: 'Create ASP.NET Minimal API endpoints with proper OpenAPI documentation'\n---\n\n# ASP.NET Minimal API with OpenAPI\n\nYour goal is to help me create well-structured ASP.NET Minimal API endpoints with correct types and comprehensive OpenAPI/Swagger documentation.\n\n## API Organization\n\n- Group related endpoints using `MapGroup()` extension\n- Use endpoint filters for cross-cutting concerns\n- Structure larger APIs with separate endpoint classes\n- Consider using a feature-based folder structure for complex APIs\n\n## Request and Response Types\n\n- Define explicit request and response DTOs/models\n- Create clear model classes with proper validation attributes\n- Use record types for immutable request/response objects\n- Use meaningful property names that align with API design standards\n- Apply `[Required]` and other validation attributes to enforce constraints\n- Use the ProblemDetailsService and StatusCodePages to get standard error responses\n\n## Type Handling\n\n- Use strongly-typed route parameters with explicit type binding\n- Use `Results\u003cT1, T2\u003e` to represent multiple response types\n- Return `TypedResults` instead of `Results` for strongly-typed responses\n- Leverage C# 10+ features like nullable annotations and init-only properties\n\n## OpenAPI Documentation\n\n- Use the built-in OpenAPI document support added in .NET 9\n- Define operation summary and description\n- Add operationIds using the `WithName` extension method\n- Add descriptions to properties and parameters with `[Description()]`\n- Set proper content types for requests and responses\n- Use document transformers to add elements like servers, tags, and security schemes\n- Use schema transformers to apply customizations to OpenAPI schemas\n"},"import":{"commit_sha":"541b7819d8c3545c6df122491af4fa1eae415779","imported_at":"2026-05-18T20:05:35Z","license_text":"MIT License\n\nCopyright GitHub, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","owner":"github","repo":"github/awesome-copilot","source_url":"https://github.com/github/awesome-copilot/tree/541b7819d8c3545c6df122491af4fa1eae415779/plugins/csharp-dotnet-development/skills/aspnet-minimal-api-openapi"}},"content_hash":[152,161,171,173,16,152,245,55,38,252,105,199,203,149,9,41,212,46,180,99,228,178,147,233,210,137,215,31,249,71,191,227],"trust_level":"unsigned","yanked":false}
