Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides building ASP.NET Core Web API endpoints with HTTP semantics, OpenAPI metadata, and centralized error handling.
Use this skill ↓80% 96%+16 ptsof test cases passed
Passed 24 of 25 test cases with the skill, and 20 of 25 without it.
In a .NET 9 minimal API handler, I am returning TypedResults.Ok(product) if found and TypedResults.NotFound() if null. The compiler gives error CS1593 about delegate mismatch. How should I annotate the lambda signature to fix this while preserving TypedResults? Show the route handler definition.
Annotates the lambda return type with an explicit Results<Ok<ProductResponse>, NotFound> type.
3 of 3 safety checks passed
Produce well-structured ASP.NET Core Web API endpoints with proper HTTP semantics, OpenAPI documentation, and error handling.
Use this skill when working on ASP.NET Core HTTP APIs, including:
.http files or similar request-based API testing artifacts;Do not use this skill for:
optimizing-ef-core-queries;Before applying this skill, gather the project context needed to match the existing API style and wiring:
Program.cs;ControllerBase or
using [ApiController];app.MapGet, app.MapPost,
app.MapPut, or app.MapDelete;If the user asks for a new endpoint, inspect the current project structure first so the implementation follows the established conventions rather than mixing styles.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.