TS.Endpoints 9.0.1

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

TS.Endpoints

TS.Endpoints is a lightweight and modular endpoint registration library for ASP.NET Minimal APIs, inspired by Carter.
It lets you organize your API endpoints into clean, maintainable classes without using controllers.


🚀 Features

  • ✅ Minimal API support
  • ✅ Modular design with IEndpoint interface
  • ✅ Automatic discovery via reflection
  • ✅ Fluent route mapping with MapEndpoints()
  • ✅ Support for single or multiple assemblies
  • ✅ Compatible with WithTags, WithName, and Swagger (optional extensions)

📦 Installation

dotnet add package TS.Endpoints

⚙️ Usage

1. Create an endpoint module:

using Microsoft.AspNetCore.Routing;
using TS.Endpoints;

public class ProductEndpoints : IEndpoint
{
    public void AddRoutes(IEndpointRouteBuilder builder)
    {
        var group = builder.MapGroup("/products").WithTags("Products");

        group.MapGet("/", () => Results.Ok("Get all products"))
              .WithSummary("GetAllProducts"); // => Optional

        group.MapPost("/", () => Results.Ok("Create product"))
              .WithSummary("CreateProduct"); // => Optional
    }
}

2. Register and map endpoints in Program.cs:

builder.Services.AddEndpoint(); // Scans current assembly

// or specify multiple assemblies
builder.Services.AddEndpoint(
    typeof(ProductEndpoints).Assembly,
    typeof(OtherEndpoints).Assembly
);

var app = builder.Build();
app.MapEndpoints();

🤝 Contributing

Contributions are welcome via pull requests and issues.
If you find this useful, star the repo and share it ⭐


📄 License

MIT License

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.
  • net9.0

    • No dependencies.

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
9.0.1 49 7/19/2025
9.0.0 47 7/19/2025