Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Binder should bind to method arguments #2

Open
trullock opened this issue Jul 5, 2018 · 0 comments
Open

JSON Binder should bind to method arguments #2

trullock opened this issue Jul 5, 2018 · 0 comments

Comments

@trullock
Copy link
Contributor

trullock commented Jul 5, 2018

Two paradigms for getting data in to a Handler:

// single complex resource argument
public IResult Post(ComplexResource resource) {}

// multiple simple arguments
public IResult Post(string foo, Guid bar) {}

The JsonBinder can only bind resources, but arguably sending the following payload to the latter handler should work as well

{ "foo": "hello", "bar": "00000000-0000-0000-0000-000000000000" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant