-
Bug
-
Resolution: Done
-
Major
-
3.0.0.Beta4
-
None
The new v2 REST API does not seem to return same name siblings. I have:
/node
/node[2]
The v1 REST API returns:
GET http://localhost:8080/modeshape-rest/v1/sample/default/items { "properties": { "jcr:primaryType": "mode:root", "jcr:uuid": "81513257505d64/" }, "children": [ "jcr:system", "node", "node[2]" ] }
However v2 returns:
GET http://localhost:8080/modeshape-rest/sample/default/items { "self": "http://localhost:8080/modeshape-rest/sample/default/items/", "up": "http://localhost:8080/modeshape-rest/sample", "jcr:primaryType": "{http://www.modeshape.org/1.0}root", "jcr:uuid": "81513257505d64/", "children": { "jcr:system": { "self": "http://localhost:8080/modeshape-rest/sample/default/items/jcr:system", "up": "http://localhost:8080/modeshape-rest/sample/default/items/" }, "node": { "self": "http://localhost:8080/modeshape-rest/sample/default/items/node[2]", "up": "http://localhost:8080/modeshape-rest/sample/default/items/" } } }