diff options
author | Arpit Singh <as00745003@techmahindra.com> | 2024-07-09 17:14:02 +0530 |
---|---|---|
committer | Arpit Singh <as00745003@techmahindra.com> | 2024-08-07 10:00:28 +0530 |
commit | d6de3f32c47dd3223cb6952c9ba6675a085687fe (patch) | |
tree | 8cb494b6e9abf054cef3aaffa885081a8a9a5d8c /cps-rest/docs/openapi/openapi.yml | |
parent | 81bf6fb1badc3c41d41c501330bc2a462f20c786 (diff) |
Refactoring of CPS Delta APIs
Refactoring of CPS delta APIs from two separate endpoints to a single endpoint.
- GET: /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/deltaAnchors
- POST: /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/deltaByPayload
To new endpoint can perform two operatios as follows:
- GET: /v2/dataspaces/{dataspace-name}/anchors/{source-anchor-name}/delta
- POST: /v2/dataspaces/{dataspace-name}/anchors/{source-anchor-name}/delta
Note: this patch only addresses the issue around refactoring of Delta
endpoint to a singular well defined endpoint. A separate patch will
be created to refactor the entire Delta feature out of CPS Data,
into a separate interface namely CPS Delta
Issue-ID: CPS-2310
Change-Id: Ic62c8308cf368b4378235597a11c476809a150b8
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Diffstat (limited to 'cps-rest/docs/openapi/openapi.yml')
-rw-r--r-- | cps-rest/docs/openapi/openapi.yml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cps-rest/docs/openapi/openapi.yml b/cps-rest/docs/openapi/openapi.yml index ab841b280b..19494fcae3 100644 --- a/cps-rest/docs/openapi/openapi.yml +++ b/cps-rest/docs/openapi/openapi.yml @@ -100,11 +100,8 @@ paths: /{apiVersion}/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes: $ref: 'cpsData.yml#/listElementByDataspaceAndAnchor' - /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/deltaAnchors: - $ref: 'cpsDataV2.yml#/deltaByDataspaceAndAnchors' - - /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/deltaPayload: - $ref: 'cpsDataV2.yml#/deltaByDataspaceAnchorAndPayload' + /v2/dataspaces/{dataspace-name}/anchors/{source-anchor-name}/delta: + $ref: 'cpsDataV2.yml#/delta' /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query: $ref: 'cpsQueryV1Deprecated.yml#/nodesByDataspaceAndAnchorAndCpsPath' |