Pandatech.FluentMinimalApiMapper 3.0.1

dotnet add package Pandatech.FluentMinimalApiMapper --version 3.0.1
                    
NuGet\Install-Package Pandatech.FluentMinimalApiMapper -Version 3.0.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="Pandatech.FluentMinimalApiMapper" Version="3.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pandatech.FluentMinimalApiMapper" Version="3.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Pandatech.FluentMinimalApiMapper" />
                    
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 Pandatech.FluentMinimalApiMapper --version 3.0.1
                    
#r "nuget: Pandatech.FluentMinimalApiMapper, 3.0.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 Pandatech.FluentMinimalApiMapper@3.0.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=Pandatech.FluentMinimalApiMapper&version=3.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Pandatech.FluentMinimalApiMapper&version=3.0.1
                    
Install as a Cake Tool

Pandatech.FluentMinimalApiMapper

A lightweight, dependency-free helper for auto-discovering and mapping Minimal API endpoints across your assemblies.

FluentMinimalApiMapper was inspired by Carter's routing concept but focuses purely on endpoint mapping, ideal for * modular monolithic* and clean architecture solutions.


✨ Features

  • 🚀 Auto-discovers all IEndpoint implementations via reflection.
  • 🧩 Works seamlessly across multiple assemblies or modules.
  • 🔄 Zero configuration, minimal boilerplate.
  • ⚙️ Optional assembly scanning (defaults to EntryAssembly).

📦 Installation

dotnet add package Pandatech.FluentMinimalApiMapper

🧭 Quick Start

1️⃣ Define an endpoint

using FluentMinimalApiMapper;
using Microsoft.AspNetCore.Routing;

public class MyEndpoint : IEndpoint
{
    public void AddRoutes(IEndpointRouteBuilder app)
    {
        app.MapGet("/hello", () => "Hello, world!");
    }
}

2️⃣ Register endpoints in Program.cs

Single assembly
using FluentMinimalApiMapper;

var builder = WebApplication.CreateBuilder(args);
builder.AddMinimalApis();

var app = builder.Build();
app.MapMinimalApis();
app.Run();
Multiple assemblies (modular setup)
using FluentMinimalApiMapper;

var builder = WebApplication.CreateBuilder(args);
builder.AddMinimalApis(typeof(MyEndpoint).Assembly, typeof(OtherModuleEndpoint).Assembly);

var app = builder.Build();
app.MapMinimalApis();
app.Run();

⚙️ Advanced

Route grouping / versioning

You can pass a RouteGroupBuilder to group endpoints:

var generalApiPolicy = app.MapGroup("").DisableAntiForgery();
app.MapMinimalApis(generalApiPolicy);

💡 Notes

  • Reflection happens once at startup—negligible in most cases.
  • Uses TryAddEnumerable to prevent duplicate registrations.
  • Works seamlessly with dependency injection and test hosts.

📄 License

Licensed under the MIT License.
Copyright Pandatech

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 (1)

Showing the top 1 NuGet packages that depend on Pandatech.FluentMinimalApiMapper:

Package Downloads
Pandatech.SharedKernel

Pandatech.SharedKernel provides centralized configurations, utilities, and extensions for ASP.NET Core projects. For more information refere to readme.md document.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.1 97 1/26/2026
3.0.0 102 12/28/2025
2.0.4 359 8/7/2025
2.0.3 277 6/1/2025
2.0.2 257 2/17/2025
2.0.1 305 11/21/2024
2.0.0 175 11/18/2024
1.1.0 265 3/24/2024
1.0.0 207 3/23/2024

nuget updates