IeuanWalker.MinimalApi.Endpoints
1.4.0
Prefix Reserved
dotnet add package IeuanWalker.MinimalApi.Endpoints --version 1.4.0
NuGet\Install-Package IeuanWalker.MinimalApi.Endpoints -Version 1.4.0
<PackageReference Include="IeuanWalker.MinimalApi.Endpoints" Version="1.4.0" />
<PackageVersion Include="IeuanWalker.MinimalApi.Endpoints" Version="1.4.0" />
<PackageReference Include="IeuanWalker.MinimalApi.Endpoints" />
paket add IeuanWalker.MinimalApi.Endpoints --version 1.4.0
#r "nuget: IeuanWalker.MinimalApi.Endpoints, 1.4.0"
#:package IeuanWalker.MinimalApi.Endpoints@1.4.0
#addin nuget:?package=IeuanWalker.MinimalApi.Endpoints&version=1.4.0
#tool nuget:?package=IeuanWalker.MinimalApi.Endpoints&version=1.4.0
MinimalApi.Endpoints

A source generator that brings clean, class-based endpoints to .NET Minimal APIs. Inspired by FastEndpoints, but source-generated and designed to be as minimal as possible.
Why Use This?
- 🚀 Zero Runtime Overhead: Source-generated code with no reflection
- 🏗️ Clean Architecture: Organized, testable endpoint classes
- Nudges you towards REPR Design Pattern (Request-Endpoint-Response) and Vertical Slice Architecture
- 🔧 Full Control: Complete access to
RouteHandlerBuilderandRouteGroupBuilder- it's just Minimal APIs underneath - 📁 Better Organization: Clear project structure with endpoint grouping (check out the example project)
- ✅ Built-In Validation: Support for both DataAnnotations and FluentValidation for request validation
- 🔓 No Lock-In: Copy the generated code and remove the library anytime - you own the output
How It Works (see wiki for more detailed explanation)
- Create endpoint classes implementing one of the endpoint interfaces
- Source generator scans your assembly at compile time
- Generates extension methods for dependency injection and route mapping
- Call the extensions in your
Program.cs:
var builder = WebApplication.CreateBuilder();
builder.AddEndpoints(); // Registers endpoints as services
var app = builder.Build();
app.MapEndpoints(); // Maps all routes
That's it! Your endpoints are now mapped with zero runtime reflection.
Full access to configure your endpoints
You have complete access to the RouteHandlerBuilder, so you can configure endpoints exactly like standard Minimal APIs:
public class HelloWorldEndpoint : IEndpoint<RequestModel, ResponseModel>
{
public static void Configure(RouteHandlerBuilder builder)
{
builder
.Post("/HelloWorld")
.RequestFromBody()
.WithName("CreateHelloWorld") // not necessary - automaticly set for you if not set
.WithTags("HelloWorld") // not necessary - automaticly set for you if not set
.WithSummary("Creates a hello world")
.WithDescription("Creates a new world in the system")
.Produces<ResponseModel>(201)
.Produces(400)
.Produces(409)
.ProducesValidationProblem()
.RequireAuthorization()
.RequireCors("MyPolicy")
.CacheOutput(TimeSpan.FromMinutes(5));
}
public async Task<ResponseModel> Handle(RequestModel request, CancellationToken ct)
{
// Your implementation
return new ResponseModel();
}
}
📖 Full Documentation & Examples →
Contributing
Contributions are welcome! Please feel free to open an issue or submit a Pull Request (start with an issue if it's a significant change).
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FluentValidation (>= 12.1.1)
- Microsoft.AspNetCore.OpenApi (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.0 | 817 | 1/27/2026 |
| 1.3.0 | 108 | 1/26/2026 |
| 1.2.0 | 177 | 1/26/2026 |
| 1.2.0-beta.1 | 69 | 1/16/2026 |
| 1.1.1 | 114 | 12/30/2025 |
| 1.1.0 | 229 | 12/3/2025 |
| 1.0.1 | 307 | 11/13/2025 |
| 1.0.0 | 297 | 11/12/2025 |
| 1.0.0-beta.13 | 167 | 10/27/2025 |
| 1.0.0-beta.12 | 161 | 10/27/2025 |
| 1.0.0-beta.11 | 107 | 10/10/2025 |
| 1.0.0-beta.10 | 98 | 10/10/2025 |
| 1.0.0-beta.9 | 163 | 10/9/2025 |
| 1.0.0-beta.8 | 152 | 10/9/2025 |
| 1.0.0-beta.7 | 111 | 10/3/2025 |
| 1.0.0-beta.6 | 107 | 10/3/2025 |
| 1.0.0-beta.5 | 158 | 10/1/2025 |
| 1.0.0-beta.4 | 153 | 10/1/2025 |
| 1.0.0-beta.3 | 151 | 9/30/2025 |
| 1.0.0-beta.1 | 155 | 9/30/2025 |