...
API : GET http://localhost:8080/v2/{dataspace-name}/anchors/{anchor-name}/delta?xpath={xpath}&descendants={descendants}?compareWithAnchor={anchor-name}
Request parameters:
parameter name | In | Required | Description |
---|---|---|---|
dataspace-name | Path | Yes | Dataspace name |
anchor-name | Path | Yes | Anchor Name |
xpath | Query | Yes | xpath of the node |
descendants | Query | No | Number of descendants for delta comparison. |
compareWithAnchor | Query | Yes | another anchor name for delta comparison |
Response Body: Response body should contain anchors delta report (added/deleted/modified configuration) as below.
[
{"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"}}
]
Below is explanation about the delta reporting mechanism.
Points from initial discussion
...