-
Notifications
You must be signed in to change notification settings - Fork 329
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
Deserialize JSON with path param #940
Comments
I think this is a strange approach. Info about the same object comes from Em Fri Feb 13 2015 at 12:41:48 PM, Nykolas Laurentino de Lima <
|
If we can't do this, we'll have to do something like this: @post("/accounts/{accountId} In my applications, this is a common use, because them I have to transform
|
I agree with @nykolaslima. I have this use case.
++1 for this proposal |
IMO it makes sense to support it. And If user send the same key both |
It's perfect to me. Can I implement it and open a PR?
|
sure, it would be great! 👍 |
If we have a resource class like this:
If we want to populate
id
andname
fields from JSON andaccountId
from request param, this doesn't work:I believe that we should deserialize the class from the JSON and if there is any path param, we should override the value in the deserialized resource.
The text was updated successfully, but these errors were encountered: