Hona.Endpoints 1.0.1

dotnet add package Hona.Endpoints --version 1.0.1                
NuGet\Install-Package Hona.Endpoints -Version 1.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="Hona.Endpoints" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hona.Endpoints --version 1.0.1                
#r "nuget: Hona.Endpoints, 1.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.
// Install Hona.Endpoints as a Cake Addin
#addin nuget:?package=Hona.Endpoints&version=1.0.1

// Install Hona.Endpoints as a Cake Tool
#tool nuget:?package=Hona.Endpoints&version=1.0.1                

Endpoints

A minimal source generator that decouples endpoint definition from wiring up to the host

Installation

Add the Hona.Endpoints NuGet package.

In your application, implement the IEndpoint interface and define your endpoints.

public class Adder : IEndpoint
{
    public static void Map(IEndpointRouteBuilder endpoints)
    {
        endpoints.MapGet("/add", (int a, int b) => (a + b).ToString());
    }
}

Finally, one line to wire up all IEndpoint implementations:

app.MapEndpoints();

That's it.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.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
1.0.1 116 7/13/2024
1.0.0 87 7/13/2024