IeuanWalker.MinimalApi.Endpoints 1.4.1

Prefix Reserved
dotnet add package IeuanWalker.MinimalApi.Endpoints --version 1.4.1
                    
NuGet\Install-Package IeuanWalker.MinimalApi.Endpoints -Version 1.4.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IeuanWalker.MinimalApi.Endpoints" Version="1.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IeuanWalker.MinimalApi.Endpoints" Version="1.4.1" />
                    
Directory.Packages.props
<PackageReference Include="IeuanWalker.MinimalApi.Endpoints" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add IeuanWalker.MinimalApi.Endpoints --version 1.4.1
                    
#r "nuget: IeuanWalker.MinimalApi.Endpoints, 1.4.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package IeuanWalker.MinimalApi.Endpoints@1.4.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=IeuanWalker.MinimalApi.Endpoints&version=1.4.1
                    
Install as a Cake Addin
#tool nuget:?package=IeuanWalker.MinimalApi.Endpoints&version=1.4.1
                    
Install as a Cake Tool

MinimalApi.Endpoints Nuget Nuget License: MIT

Read the docs

MinimalApi.Endpoints is a source generator that lets you write clean, class-based endpoints for .NET Minimal APIs - no runtime reflection, no boilerplate. Inspired by FastEndpoints, but fully source-generated and gives you complete control.

Why Use This?

  • 🚀 Zero Runtime Overhead - Everything is source-generated; no reflection, no hidden costs
  • 🏗️ Clean Architecture - Organise endpoints into testable, maintainable classes, which nudges you towards REPR Design Pattern (Request-Endpoint-Response) and Vertical Slice Architecture
  • 🔧 Full Control: Complete access to RouteHandlerBuilder and RouteGroupBuilder - it's just Minimal APIs underneath
  • 📁 Better Organization - Group endpoints clearly; perfect for large projects
  • ✅ Built-In Validation - Support DataAnnotations and FluentValidation out of the box
  • 🔓 No Lock-In - Copy the generated code and remove the library anytime - you own the output

How It Works (The wiki has the full explanation, but here's a quick overview)

  1. Create endpoint classes implementing one of the endpoint interfaces
  2. Source generator scans your assembly at compile time
  3. Generates extension methods for dependency injection and route mapping
  4. 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") // optional, automatically set for you if not set
            .WithTags("HelloWorld") // optional, automatically 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();
    }
}

📖 Read 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1 115 6/25/2026
1.4.0 1,286 1/27/2026
1.3.0 131 1/26/2026
1.2.0 204 1/26/2026
1.2.0-beta.1 91 1/16/2026
1.1.1 135 12/30/2025
1.1.0 249 12/3/2025
1.0.1 328 11/13/2025
1.0.0 319 11/12/2025
1.0.0-beta.13 187 10/27/2025
1.0.0-beta.12 186 10/27/2025
1.0.0-beta.11 129 10/10/2025
1.0.0-beta.10 118 10/10/2025
1.0.0-beta.9 184 10/9/2025
1.0.0-beta.8 173 10/9/2025
1.0.0-beta.7 129 10/3/2025
1.0.0-beta.6 127 10/3/2025
1.0.0-beta.5 178 10/1/2025
1.0.0-beta.4 176 10/1/2025
1.0.0-beta.3 174 9/30/2025
Loading failed