-
Sub-task
-
Resolution: Done
-
Medium
-
None
-
None
-
None
After updating the post operation to support multiple data trees. the following problems were noticed with the GET API
- Get a node
When passing the xpath value as root in the query parameter, the expected response should return all the data trees stored under a particular, But currently the Get API only returns the first data tree under the particular anchor
//Expected Response with xpath= / as query parameter { "first-container": { "a-leaf": "a-Value" }, "last-container": { "x-leaf": "x-value" } }
//Response received { "multipleDataTree:first-container": { "a-leaf": "a-Value" } }
//Confirmation test to check that all data trees exist under the particular anchor by passing individual container names // Response when xpath=/first-container in query parameter { "multipleDataTree:first-container": { "a-leaf": "a-Value" } } // Response when xpath=/last-container in query parameter { "multipleDataTree:first-container": { "a-leaf": "a-Value" } }