-
Notifications
You must be signed in to change notification settings - Fork 365
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
Multilevel scope parameters #176
Comments
I can always define the let(:address) {{
city: 'London'
}} But I would like to have the nested param defined in API documentation as well. |
parameter :item_id, "...", :scope => :order |
Ah good to know. I wasn't sure how it works as I couldn't find any answer (obviously, was never implemented). Shall we leave this open then as a feature request, btw? I do nested params quite often as it's an Ember way and defined in JSON:API standards. Grape API supports it as well. |
Documenting it nicely won't work at the moment, that's half of what the ley(:raw_post) do
{
:order => {
:item_id => item_id,
:address => {
:city => city,
},
},
}
end |
Yeah, We able to define the address.city without using a |
Closed with #221 |
Hi, just trying to make multilevel scope parameters but I am unable to make it using scope_parameters.
an example code could be:
Is there a way to define them or is it a feature request?
The text was updated successfully, but these errors were encountered: