3 ms·
As someone who isn't familiar with .NET, I wish this post had an example with a JSON request body and response.
by rattray 5y ago
As someone who isn't familiar with .NET, I wish this post had an example with a JSON request body and response.
- klaussilveira 5y agoYou can bind JSON to structs: https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06158727#other-verbs-post-put-patch-etc https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06... Or you can customize how it happens: https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06158727#customizing-json-binding https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06... As for responses: https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06158727#json https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06...