Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 804 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 804 Bytes

MediatingApis

Quick and simple library with extensions to use ASP.NET Core Minimal APIs with martinothamar/Mediator, inspired by this video from Nick Chapsas.

Contains a single marker interface, IHttpRequest, to mark suitable request types, and a number of extensions on IEndpointRouteBuilder for common HTTP verbs and use cases. Request types can use the standard minimal api binding attributes on member properties to customize binding behavior, as the request object is annotated with [AsParameters].

The mediated request handler is expected to return standard results as with normal minimal api code.