1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright (C) 2021 Pantheon.tech
4 .. Copyright (C) 2024 TechMahindra Ltd.
13 The CPS Delta feature provides 1 endpoint:
15 - /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/delta
19 The following is a Get endpoint, which allows the user to find the delta between configurations stored under two anchors within the same dataspace.
23 The endpoint takes 2 path parameters as input:
24 - **dataspace-name:** name of dataspace where the 2 anchors to be used for delta generation are stored.
25 - **anchor-name:** the source anchor name, the data under this anchor will be the reference data for delta report generation
29 The endpoint takes 3 query parameters as input:
30 - **target-anchor-name:** the data retrieved from target anchor gets compared against the data retrieved from source anchor
31 - **xpath:** the xpath to a particular data node, Example: /bookstore/categories[@code='1']
32 - **descendants:** specifies the number of descendants to query.
42 "xpath": "/bookstore/categories/[@code=3]",
50 "xpath": "/bookstore/categories/[@code=1]",
58 "xpath": "/bookstore/categories/[@code=2]",