From 7edbeb6d5853206cc1d3b4cadd7ba50e96f4f04d Mon Sep 17 00:00:00 2001 From: Renu Kumari Date: Mon, 30 Aug 2021 07:45:52 -0400 Subject: Change the list-node rest interface - Changed the list-node interface to be consistent with datanode api Issue-ID: CPS-598 Signed-off-by: Renu Kumari Change-Id: Ic99828f1463e9a724244c05166e477581756f602 --- cps-rest/src/main/resources/static/cpsData.yml | 2 +- cps-rest/src/main/resources/static/openapi.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cps-rest/src/main') diff --git a/cps-rest/src/main/resources/static/cpsData.yml b/cps-rest/src/main/resources/static/cpsData.yml index 75d954473..77673cb0f 100644 --- a/cps-rest/src/main/resources/static/cpsData.yml +++ b/cps-rest/src/main/resources/static/cpsData.yml @@ -72,7 +72,7 @@ listNodeByDataspaceAndAnchor: '403': $ref: 'components.yml#/components/responses/Forbidden' - patch: + put: description: Replace list-node child elements under existing node for a given anchor and dataspace tags: - cps-data diff --git a/cps-rest/src/main/resources/static/openapi.yml b/cps-rest/src/main/resources/static/openapi.yml index 8fa640cf9..922cabb01 100644 --- a/cps-rest/src/main/resources/static/openapi.yml +++ b/cps-rest/src/main/resources/static/openapi.yml @@ -67,7 +67,7 @@ paths: /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes: $ref: 'cpsData.yml#/nodesByDataspaceAndAnchor' - /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-node: + /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/list-nodes: $ref: 'cpsData.yml#/listNodeByDataspaceAndAnchor' /v1/dataspaces/{dataspace-name}/nodes: -- cgit 1.2.3-korg