ModEndpoints 2.0.1
dotnet add package ModEndpoints --version 2.0.1
NuGet\Install-Package ModEndpoints -Version 2.0.1
<PackageReference Include="ModEndpoints" Version="2.0.1" />
<PackageVersion Include="ModEndpoints" Version="2.0.1" />
<PackageReference Include="ModEndpoints" />
paket add ModEndpoints --version 2.0.1
#r "nuget: ModEndpoints, 2.0.1"
#:package ModEndpoints@2.0.1
#addin nuget:?package=ModEndpoints&version=2.0.1
#tool nuget:?package=ModEndpoints&version=2.0.1
ModEndpoints
WebResultEndpoints, BusinessResultEndpoints, and ServiceEndpoints structure ASP.NET Core Minimal APIs into REPR format endpoints and seamlessly integrate with the result pattern. WebResultEndpoints transform the business result returned by the handler method into a Minimal API IResult for client responses, while BusinessResultEndpoints and ServiceEndpoints directly return the raw business result.
✨ Features
- REPR Pattern Implementation: Organizes Minimal APIs into Request, Endpoint and Response components.
- Seamless Integration: Fully compatible with ASP.NET Core Minimal APIs, supporting configurations, parameter binding, authentication, OpenAPI tooling, endpoint filters, etc.
- Route Grouping: Supports grouping endpoints into route groups for better organization and shared configurations.
- Auto-Discovery and Registration: Automatically discovers and registers endpoints and route groups.
- FluentValidation Support: Built-in validation using FluentValidation; requests are automatically validated if a request validator is registered.
- Dependency Injection: Supports constructor-based dependency injection for handling requests at runtime.
- Type-Safe Responses: Provides response type safety in request handlers.
- Performant: (Almost) as fast as native Minimal APIs.
🧩 Endpoint Types
WebResultEndpoint
- Purpose: Converts business results into standardized HTTP status codes and response formats, ensuring consistent and type-safe API behavior.
- Usage: Perfect for centralizing and abstracting the logic of converting business results into HTTP responses.
BusinessResultEndpoint
- Purpose: Returns raw business results directly within an HTTP 200 OK response without additional formatting.
- Usage: Ideal for internal API layers or scenarios where the raw business result is sufficient for the client.
ServiceEndpoint
- Purpose: Designed for simplifying remote service consumption with strongly typed request and response models.
- Usage: Works in conjunction with the
ModEndpoints.RemoteServicespackage to abstract HTTP plumbing on the client side.
Note:
ModEndpoints.RemoteServicespackage enables clients to consume remoteServiceEndpointswith the knowledge of strongly typed request and response models shared between server and client projects.ModEndpoints.RemoteServices.Contractspackage contains the interfaces required for ServiceEndpoint request models.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. 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 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
- ModEndpoints.Core (>= 2.0.1)
- ModEndpoints.RemoteServices (>= 2.0.1)
- ModResults.MinimalApis (>= 1.1.1)
-
net8.0
- ModEndpoints.Core (>= 2.0.1)
- ModEndpoints.RemoteServices (>= 2.0.1)
- ModResults.MinimalApis (>= 1.1.1)
-
net9.0
- ModEndpoints.Core (>= 2.0.1)
- ModEndpoints.RemoteServices (>= 2.0.1)
- ModResults.MinimalApis (>= 1.1.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 |
|---|---|---|
| 2.0.1 | 84 | 12/30/2025 |
| 2.0.0 | 143 | 12/26/2025 |
| 1.4.0 | 169 | 10/16/2025 |
| 1.3.5 | 449 | 7/21/2025 |
| 1.3.4 | 283 | 6/13/2025 |
| 1.3.3 | 319 | 6/12/2025 |
| 1.3.2 | 324 | 6/11/2025 |
| 1.3.1 | 149 | 5/23/2025 |
| 1.3.0 | 181 | 5/20/2025 |
| 1.2.0 | 182 | 5/19/2025 |
| 1.1.1 | 143 | 5/18/2025 |
| 1.1.0 | 261 | 5/15/2025 |
| 1.0.1 | 253 | 5/12/2025 |
| 1.0.0 | 188 | 4/28/2025 |
| 0.6.8 | 111 | 4/26/2025 |
| 0.6.7 | 226 | 4/14/2025 |
| 0.6.6 | 164 | 4/13/2025 |
| 0.6.5 | 148 | 4/11/2025 |
| 0.6.4 | 195 | 3/3/2025 |
| 0.6.3 | 164 | 2/24/2025 |
| 0.6.2 | 145 | 2/20/2025 |
| 0.6.1 | 158 | 2/13/2025 |
| 0.6.0 | 144 | 2/12/2025 |
| 0.5.2 | 126 | 1/29/2025 |
| 0.5.1 | 130 | 1/21/2025 |
| 0.5.0 | 121 | 1/20/2025 |
| 0.4.4 | 124 | 1/16/2025 |
| 0.4.3 | 132 | 1/16/2025 |
| 0.4.2 | 128 | 1/15/2025 |
| 0.4.1 | 102 | 1/13/2025 |
| 0.4.0 | 99 | 1/13/2025 |
| 0.3.3 | 109 | 1/12/2025 |
| 0.3.2 | 176 | 1/4/2025 |
| 0.3.1 | 158 | 1/4/2025 |
| 0.3.0 | 162 | 1/3/2025 |
| 0.2.0 | 137 | 12/27/2024 |
| 0.1.3 | 145 | 12/26/2024 |
| 0.1.2 | 146 | 12/23/2024 |
| 0.1.1 | 153 | 12/22/2024 |