dotnet-web-api

Build controller-based ASP.NET Core Web APIs with validation, versioning, and error handling.

8|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-web-api-postpartum-genushyacinthus29
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-web-api
Source: https://github.com/Postpartum-genushyacinthus29/dotnet-skills/tree/main/skills/dotnet-web-api
Command: npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-web-api-postpartum-genushyacinthus29

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps teams build and maintain controller-based ASP.NET Core Web APIs with consistent patterns, clear contracts, and robust error handling.

Core Features & Use Cases

  • Thin controllers delegate to services and validation pipelines to ensure clean boundaries.
  • Comprehensive API design patterns including model binding, versioning, standardized error responses, global exception handling, and OpenAPI documentation.
  • Typical use cases include building RESTful APIs, migrating legacy controllers, and implementing scalable, testable API surfaces.

Quick Start

Create a new ASP.NET Core Web API project with a sample controller, add FluentValidation, API versioning, and a global exception handler.

Frequently Asked Questions about dotnet-web-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure ASP.NET Core Web API controllers to keep them thin and maintainable?

Keep ASP.NET Core Web API controllers thin by delegating business logic to dedicated services and validation pipelines, ensuring clean controller-service boundaries and scalable architecture.

What's the best way to implement global exception handling and standardized error responses in an ASP.NET Web API?

The best way to implement global exception handling in an ASP.NET Web API is to use centralized error handling mechanisms that produce structured, standardized error responses across the application.

How do I set up API versioning and OpenAPI documentation for an ASP.NET Core Web API project?

You set up API versioning and OpenAPI documentation in an ASP.NET Core Web API by applying versioning packages and configuring OpenAPI to generate clear, versioned API contracts automatically.

Does this approach to building ASP.NET Web APIs support centralized validation with FluentValidation?

Yes, this approach to building ASP.NET Web APIs supports centralized validation by integrating FluentValidation into a pipeline that enforces explicit model binding before controllers execute.

When should I use controller-based ASP.NET Core Web APIs instead of minimal APIs?

You should use controller-based ASP.NET Core Web APIs when your project requires robust validation, structured global exception handling, versioning, and clear controller-service boundaries for scalable architecture.