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

Nested parameters support #58

Closed
schmurfy opened this issue Sep 5, 2012 · 7 comments
Closed

Nested parameters support #58

schmurfy opened this issue Sep 5, 2012 · 7 comments

Comments

@schmurfy
Copy link

schmurfy commented Sep 5, 2012

Is there any plan to support nested parameters like this ?

{
  "user": {
    "name" : "John",
    "type" : "guest"
  }
}

I am not really sure how it could be shown in the ui but it would a nice feature :)

@fehguy
Copy link
Contributor

fehguy commented Sep 5, 2012

Hi, do you mean as a POST param, or as model responses? Both are supported right now.

@schmurfy
Copy link
Author

schmurfy commented Sep 6, 2012

Sorry I could not find them in the documented swagger format, I will have another look.

@fehguy
Copy link
Contributor

fehguy commented Sep 6, 2012

post back if not clear, and how the docs could be improved. Thank you

@schmurfy
Copy link
Author

schmurfy commented Sep 7, 2012

I took another look at the available resources on the api parameters format but I can't seem to find how a method taking the parameters in my first post would look.
And yes I meant POST params

@fehguy
Copy link
Contributor

fehguy commented Sep 7, 2012

@fehguy
Copy link
Contributor

fehguy commented Oct 31, 2012

please reopen if you're still having an issue with this--I think the wiki covers it.

@rsmithlal
Copy link

rsmithlal commented Sep 26, 2016

For future reference, you can add it by setting the query params like so: user[name] and user[type]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants