Versions Compared

Key

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

...

Type

Format

Description

FileYang file/Zip filefile containing the schema details.
Text/StringTarget anchor name or JSON payload as plain text
  • Case 1: target anchor name to fetch the data stored under the specified anchor, which is then compared to source anchor
  • Case 2: json data to be compared to source anchor

Alternative approach

In RESTful interface we can have same endpoint for multiple APIs, given they are performing different operations, for example POST and GET.

So, we can have the following endpoints in CPS for the Delta feature:

  • GET /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/delta
  • POST /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/delta