summaryrefslogtreecommitdiffstats
path: root/cps-rest/docs
diff options
context:
space:
mode:
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>2021-05-14 14:41:05 +0300
committerRishi Chail <rishi.chail@est.tech>2021-05-25 09:21:08 +0000
commit576f48e8d3ef2ac7526b5684eba0a3e8259ce3cc (patch)
tree631e393e235987531da722f56622785265cc1fdb /cps-rest/docs
parentb0e78acb6aefdcb5866955802099e6091b2a6952 (diff)
Replace list-node content (part 2): CPS REST layer
Issue-ID: CPS-362 Change-Id: I46dc9b48758fa10a47a648aa4e6a63775466234b Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'cps-rest/docs')
-rwxr-xr-xcps-rest/docs/api/swagger/cpsData.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/cps-rest/docs/api/swagger/cpsData.yml b/cps-rest/docs/api/swagger/cpsData.yml
index c0cd85b28..aa8a31dfc 100755
--- a/cps-rest/docs/api/swagger/cpsData.yml
+++ b/cps-rest/docs/api/swagger/cpsData.yml
@@ -50,6 +50,32 @@ listNodeByDataspaceAndAnchor:
'403':
$ref: 'components.yml#/components/responses/Forbidden'
+ patch:
+ description: Replace list-node child elements under existing node for a given anchor and dataspace
+ tags:
+ - cps-data
+ summary: Replace list-node child element(s) under existing parent node
+ operationId: replaceListNodeElements
+ parameters:
+ - $ref: 'components.yml#/components/parameters/dataspaceNameInPath'
+ - $ref: 'components.yml#/components/parameters/anchorNameInPath'
+ - $ref: 'components.yml#/components/parameters/requiredXpathInQuery'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: string
+ responses:
+ '200':
+ $ref: 'components.yml#/components/responses/Created'
+ '400':
+ $ref: 'components.yml#/components/responses/BadRequest'
+ '401':
+ $ref: 'components.yml#/components/responses/Unauthorized'
+ '403':
+ $ref: 'components.yml#/components/responses/Forbidden'
+
nodesByDataspaceAndAnchor:
post:
description: Create a node for a given anchor and dataspace