-
Sub-task
-
Resolution: Done
-
Highest
-
None
-
None
To develop a new endpoint in CPS to get Delta between configurations stored in 2 separate anchors.
Proposed API:
/v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/delta?anchor2={anchor-name}?xpath={xpath}&descendants={descendants}
Expected Response:
[ { "action": "ADD", "xpath": "/bookstore/categories/[@code=3]", "payload": { "code": 3, "name": "kidz" } }, { "action": "DELETE", "xpath": "/bookstore/categories/[@code=1]", "payload": { "code": 1, "name": "Fiction" } }, { "action": "UPDATE", "xpath": "/bookstore/categories/[@code=2]", "payload": { "name": "Comic" } } ]