• Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Medium Medium
    • New Delhi Release
    • None
    • None
    • None

      Design and develop second API under the CPS delta feature to generate delta between an anchor and a JSON payload.

      Proposed API:

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

      A/C: Demo

            arpitsingh Arpit Singh
            emaclee Lee Anjella Macabuhay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: