Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

API : GET http://localhost:8080/v2/{dataspace-name}/anchors/{anchor-name}/delta?xpath={xpath}&descendants={descendants}?compareWithAnchor={anchor-name}

Request parameters:

parameter nameInRequiredDescription
dataspace-namePathYesDataspace name
anchor-namePathYesAnchor Name
xpathQueryYesxpath of the node
descendantsQueryNoNumber of descendants for delta comparison. 
compareWithAnchorQueryYesanother 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. 

Image Added

Points from initial discussion

...