Controllers on a diet
Controllers grouped by feature and kept thin by Mediator. The business rules live in Application, where they belong, not in an action method.
A Lean Mean Clean Apps template for .NET 10
A .NET 10 template that gives you a tested, layered HTTP API in two commands. For people who like their endpoints with classes and attributes.
dotnet new install CleanWebApi.Template dotnet new cleanwebapi --name WorksOnMyMachine.Movies cd WorksOnMyMachine.Movies && docker compose up -dThree layers, the tests, a Dockerfile and a CI pipeline. Go and tell your team you've been working on it all week.
Controllers on a diet
Controllers grouped by feature and kept thin by Mediator. The business rules live in Application, where they belong, not in an action method.
Docs that write themselves
OpenAPI comes from the XML comments you were going to write anyway, and Scalar turns it into an API reference you can actually click around in.
Errors with manners
Validation lives in the Application layer with FluentValidation, and every failure comes back as Problem Details (RFC 9457). No mystery 500s.
Tested like it matters
xUnit, Shouldly and a 95% coverage gate. Every test gets its own throwaway SQLite database, so nobody steps on anybody’s toes.
Clean Web API is one of five Lean Mean Clean Apps templates. They share the same Application and Infrastructure layers, the same tests and the same pipeline. Only Presentation changes. Like a family, really. Same genes, different haircuts.
Each template gets the same ring logo in its own colour. The rings follow the Clean Architecture diagram, from the entities in the core out to the frameworks and drivers on the edge. Web API drew blue, the colour of every enterprise dashboard it will one day feed. The logos, colours and everything else live in the brand kit.