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?cps-pathxpath={cps-pathxpath}&descendants={descendants}?compareWithAnchor={anchor-name}

...

parameter nameInRequiredDescription
dataspace-namePathYesDataspace name
anchor-namePathYesAnchor Name
cps-pathxpathQueryYesCps-path xpath of the node node
descendantsQueryNoNumber of descendants for delta comparison comparison. 
compareWithAnchorQueryYesanother anchor name for delta comparison

...

Response Body: Response body should contain anchors delta report (added/deleted/modified configuration) as below.--- TBD ---

[
{"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"}}
]

Points from initial discussion

...