-
Notifications
You must be signed in to change notification settings - Fork 130
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
Segregate nested objects #295
Conversation
Should we add |
As far as I can understand, if there are mutliple nestings the old method of retrieving objects is followed right? Please read the comment I posted, I think we can handle multiple nestings and single level nestings using only the modifications in |
This improvement may save different reads as in the place of the full object should appear only its link to the proper URI. Any Hydra Resource has by definition its own endpoint, so |
|
Other classes besides |
Every object that is a |
Yes I know that, and maybe that's why we prefer HTTP-APIs as org name instead of REST-APIs cause REST constraint of hypermedia as the engine of application state is not fulfilled by many self-proclaimed RESTful APIs. |
the official vocabulary is the one in the server, nobody updated the version in Github. REST patadigm has a principle called HATEOAS that is rarely applied. |
@vddesai1871 I dont see tests for this feature in th ePR. |
Initially I was only handling collection classes as nested objects. After following your comment
Now code also handlescollection classes and non collection classes alike which may be present at nested classes in api_doc. |
Fixes #248
Checklist
Description
Segregates objects returned in a response
Test Logs
Changes log
Added a new resource names 'NestedItem' in app.py which handles the requests for nested objects
Added
Segregates objects returned in a response.
Only segregates the objects nested at the first level, if the nested object has other nested objects in it then they will be returned in the same response.
Changed
Fixed
Removed