FastEndpoints structures ASP.NET minimal APIs using request-endpoint-response classes with validation, auth, versioning, and testing helpers.
Overview
FastEndpoints is a lightweight ASP.NET library that organizes HTTP APIs around the REPR pattern so each route lives in its own class with typed request and response models. It aims for minimal boilerplate compared with classic MVC controllers while staying close to minimal API performance.
Endpoints are discovered and registered automatically, support attribute-free route configuration, and integrate policy-based security, JWT bearer auth, API versioning, validation, pub-sub events, and server-sent events. Developers can inject dependencies through constructors or properties like other ASP.NET components.
Documentation on the project website covers configuration, integration testing without hard-coded routes, file uploads, and compatibility with OpenAPI tooling. Sponsors fund ongoing maintenance.
FastEndpoints targets ASP.NET 10 and newer.
Key features
- REPR endpoint classes
- Automatic endpoint discovery
- FluentValidation integration
- JWT and policy security
- API versioning support
- Server-sent events helper
- In-process pub-sub events
- Strongly typed integration tests
Use cases
- Vertical slice ASP.NET APIs
- Microservice HTTP endpoints
- Versioned public REST services
- JWT-secured backend APIs