DamianEdwards / MinimalApis.Extensions

A set of extensions and helpers for working with ASP.NET Core Minimal APIs.
MIT License
298 stars 27 forks source link

Add support for defining API parameter metadata #9

Open DamianEdwards opened 2 years ago

DamianEdwards commented 2 years ago

Something like:

app.MapPost("/foo", (int bar) => { })
   .WithParameter("bar", "Some description for the parameter here", BindingSource.Querystring, required: false);