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

Support for nested resources in body missing #1189

Closed
danielbecker opened this issue Apr 21, 2015 · 7 comments
Closed

Support for nested resources in body missing #1189

danielbecker opened this issue Apr 21, 2015 · 7 comments

Comments

@danielbecker
Copy link

We are currently in the process of documenting our JSON-only API with swagger.
In this process we encountered the same problem that was mentioned in this previous issue: #58.
The second link mentioned in the ticket is empty and the first one just refers to the default data type page.

What is the correct way of specifying nested parameters in a path?

@webron
Copy link
Contributor

webron commented Apr 21, 2015

What do you mean by nested parameters in a path?

@danielbecker
Copy link
Author

What I meant by that was an endpoint accepting a JSON object, which can have nested resources.
For example: { "session": "abc", "user":{ "name": "chris" } }

@webron
Copy link
Contributor

webron commented Apr 21, 2015

How is that missing?

@danielbecker
Copy link
Author

Could you give me a short example of how to do that in swagger?

@webron
Copy link
Contributor

webron commented Apr 21, 2015

Have you seen the pet store? Specifically http://petstore.swagger.io/#!/pet/addPet.

@webron
Copy link
Contributor

webron commented May 4, 2015

@danielbecker - did you manage to work it out?

@danielbecker
Copy link
Author

Well, thanks to your help I was able to work my around the problem. However, it would still be nice to nest objects anonymously.

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

2 participants