• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Highest Highest
    • New Delhi Release
    • None
    • CPS-Core
    • None

      To develop a new endpoint in CPS to get Delta between configurations stored in 2 separate anchors.

       

      Proposed API:

      /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/delta?anchor2={anchor-name}?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"
          }
        }
      ]

            arpitsingh Arpit Singh
            arpitsingh Arpit Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: