๐Ÿ”ฅ Pragmatic .NET Code Rules Course is on Presale - 40% off!BUY NOW
FREE production-ready project template

Vertical Slice Architecture in .NET 10.
Zero unnecessary abstractions.

VSA API template with 10 endpoints, 2 feature domains, and only 5 NuGet packages. No MediatR. No FluentValidation. No AutoMapper. Just clean .NET.

๐ŸŸข17 source files ยท 10 endpoints ยท 5 NuGet packages

Send me FREE Template now


What's inside the template

Not a toy example. A real project with two complete feature domains, 10 fully functional endpoints, and zero bloat.

โœ“ Self-contained feature slices

Each feature file contains its Request DTO, validation rules, handler logic, and endpoint mapping - all in one place. Add a feature? Add a file. Delete a feature? Delete a file.

โœ“ Minimal APIs with route groups

No controllers, no attributes - just lambdas and route groups. Clean composition under /api/newsletters and /api/subscribers with shared OpenAPI tags.

โœ“ Built-in validation with DataAnnotations

A single generic ValidationFilter<T> handles validation for the entire API. Add [Required], [StringLength], [EmailAddress] to any request record - done.

โœ“ ProblemDetails error responses

Standard RFC 9457 error format. Structured Error records with {Feature}.{Reason} codes - easy to trace, easy to handle on the client.

โœ“ Only 5 NuGet packages

No MediatR. No FluentValidation. No AutoMapper. No Carter. Zero unnecessary abstractions - only what .NET gives you out of the box.

โœ“ EF Core 10 + PostgreSQL

Code-first with typed DbContextOptions, explicit entity configuration with HasMaxLength constraints, sealed DbContext, and auto-migrations in dev.

What you'll learn

โœ… How to structure a .NET 10 API using Vertical Slice Architecture

โœ… How to use Minimal APIs with route groups for clean endpoint composition

โœ… How to implement validation without FluentValidation using DataAnnotations + endpoint filters

โœ… How to organize Commands and Queries within feature slices (lightweight CQRS)

โœ… How to handle errors with structured error types and proper HTTP status codes

โœ… How to build a production-ready API with only 5 NuGet packages

What is this exactly?

A production-ready STARTER Vertical Slice Architecture API template built with .NET 10 and Minimal APIs. Two complete feature domains - Newsletters (full CRUD + Publish) and Subscribers (full CRUD) - with 10 fully functional endpoints, structured error handling, and modern API documentation via Scalar.

Who is it for?

.NET developers who want to move beyond the traditional N-layer/Clean Architecture. Backend engineers looking for a lightweight, maintainable API structure. Teams that want each feature independently buildable - and anyone tired of jumping between 5+ files to understand one feature.