-
Sub-task
-
Resolution: Unresolved
-
Medium
-
None
-
None
-
None
Design and develop second API under the CPS delta feature to generate delta between an anchor and a JSON payload.
Proposed API:
/v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/delta?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" } } ]
A/C: Demo