It nudges you towards the REPR Design Pattern (Request-Endpoint-Response) for convenient & maintainable endpoint creation with virtually no boilerplate. Performance is on par with Minimal APIs. It's faster, uses less memory and does around 45k more requests per second than a MVC Controller in our benchmarks. Convenient business logic validation & error responses. Easy access to environment & configuration settings. Supports policy/permission/role/claim based security. In-process pub/sub event notifications (with auto discovery). Declarative security policy building (within each endpoint). Easy Server-Sent-Events for real-time data streaming. Supports any IOC container compatible with ASP.NET. Convenient integration testing (route-less & strongly-typed). Constructor & property injection of endpoint dependencies. Built-in uncaught exception handler. Easy model binding from route/query/json body/claims/forms/headers. Supports swagger/serilog/etc.
Features
- Define endpoints in multiple class files (even in deeply nested folders)
- Auto discovery & registration of endpoints
- Attribute-free endpoint definitions (no attribute argument type restrictions)
- Secure by default & supports most auth providers
- Built-in support for JWT Bearer auth scheme
- Supports policy/permission/role/claim based security