minimal-apis

Create .NET 10 REST endpoints with MapGroup() and Scalar OpenAPI metadata.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/StuartF303/Sorcha --skill minimal-apis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minimal-apis
Source: https://github.com/StuartF303/Sorcha/tree/main/.claude/skills/minimal-apis
Command: npx skills add https://github.com/StuartF303/Sorcha --skill minimal-apis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables developers to create lightweight HTTP APIs in .NET 10 using Minimal APIs instead of MVC controllers, reducing boilerplate and improving clarity.

Core Features & Use Cases

  • Endpoint-first design: Define endpoints with MapGroup() and extension methods to organize routes.
  • Scalar OpenAPI docs: Generate API metadata and UI using Scalar, not Swagger.
  • Use Case: Rapidly prototyping service endpoints for microservices, small services, or internal APIs with minimal ceremony.

Quick Start

Create a new .NET 10 Minimal API project and define the first endpoints in Program.cs, then run the app and view the Scalar OpenAPI UI for documentation.

Frequently Asked Questions about minimal-apis

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

FAQPage Schema
How do I build a REST API in .NET without MVC controllers?

Minimal APIs in .NET 10 let you define lightweight endpoints directly in Program.cs using MapGroup() for organization, replacing heavy MVC controller boilerplate with cleaner, faster endpoint definitions.

Can I use Scalar instead of Swagger for OpenAPI documentation?

Yes. Minimal APIs integrate with Scalar to generate and serve interactive OpenAPI documentation, providing an alternative UI to Swagger for exploring your API endpoints and metadata.

What's the best way to organize endpoints in a .NET Minimal API project?

Structure endpoints using MapGroup() extension methods and place endpoint definitions in an Endpoints/ folder, then wire them into Program.cs startup for maintainable, rapid service prototyping.

How do I add OpenAPI metadata to Minimal API endpoints?

Attach OpenAPI metadata externally during endpoint configuration in Program.cs, ensuring all endpoints are documented and discoverable through Scalar without cluttering handler code.

Are Minimal APIs suitable for microservices and small internal APIs?

Minimal APIs excel for rapidly prototyping microservices and internal APIs by eliminating controller overhead and enabling direct endpoint definition with minimal ceremony in .NET 10.

Do Minimal APIs require MapGroup to stay organized?

MapGroup is the recommended pattern for organizing routes and is enforced in this Skill's approach, grouping related endpoints logically and reducing duplication across your API structure.