An open API service indexing awesome lists of open source software.

https://github.com/zhaytam/aspnetcore.lightweightapi

A lightweight & performant framework for APIs (endpoints), built on top ASP.NET Core (boilerplate)
https://github.com/zhaytam/aspnetcore.lightweightapi

Last synced: about 1 year ago
JSON representation

A lightweight & performant framework for APIs (endpoints), built on top ASP.NET Core (boilerplate)

Awesome Lists containing this project

README

          

# AspNetCore.LightweightApi

A lightweight & performant framework for APIs, built on top ASP.NET Core (boilerplate)

## Example

```cs
[Endpoint("/users/{id}", Method = EndpointMethod.Patch)]
public class UpdateUserHandler : IEndpointHandler.IWithRequest
{
public Task Handle(UpdateUserDto request, HttpContext context)
{
var id = context.Request.RouteValues.Get("id");
// Update in db
return Task.CompletedTask;
}
}

public record UpdateUserDto(string Username, string Email);
```