Re:Minimal APIs at a glance in .NET 6
by rattray on Monday September 13, 2021 @10:30AM
(#28511961)
As someone who isn't familiar with .NET, I wish this post had an example with a JSON request body and response.
[ Parent
| on HN ]
Re:Minimal APIs at a glance in .NET 6
by klaussilveira on Monday September 13, 2021 @02:14PM
(#28514776)
You can bind JSON to structs: https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06...
Or you can customize how it happens: https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06...
As for responses: https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06...