Issue Details (XML | Word | Printable)

Key: GLASSFISH-12148
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Jason Lee
Reporter: Jason Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

Allow child traversal in GET requests

Created: 04/Jun/10 10:01 AM   Updated: 18/Oct/12 09:22 PM
Component/s: rest-interface
Affects Version/s: 3.1
Fix Version/s: future release

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: All


Issuezilla Id: 12,148
Tags: ee7ri_cleanup_deferred
Participants: Jason Lee, Mitesh Meswani and Tom Mueller


 Description  « Hide

Currently, when a user requests a certain resource, he gets that resource's attributes and a list of URLs
for child resources (and some other items not relevant here):

curl -f http://localhost:4848/management/domain/resources/admin-object-resource.xml

<entity>
<!-- snip-->
<childResources>
<childResource>http://localhost:4848/management/domain/resources/admin-object-
resource/foo</childResource>
<childResource>http://localhost:4848/management/domain/resources/admin-object-
resource/bar</childResource>
<childResource>http://localhost:4848/management/domain/resources/admin-object-
resource/baz</childResource>
</entity>

In the case of the Admin Console, each of the child resources is then requested in certain cases,
resulting in several network calls. It would be nice, then, to able to get the parent object, plus each
child object, to an arbitrary depth, in a single call. For example:

curl -f http://localhost:4848/management/domain/resources/admin-object-resource.xml?
expandLevel=2

would fetch the admin-object-resource (list), as well as each Admin Object Resource and its attributes.



No work has yet been logged on this issue.