summaryrefslogtreecommitdiffstats
path: root/cps-rest/src/main
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/src/main
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/src/main')
-rwxr-xr-xcps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java b/cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java
index 3d16539b3e..0c70a6c2e9 100755
--- a/cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java
+++ b/cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java
@@ -87,6 +87,13 @@ public class DataRestController implements CpsDataApi {
return new ResponseEntity<>(HttpStatus.OK);
}
+ @Override
+ public ResponseEntity<String> replaceListNodeElements(final String jsonData, final String parentNodeXpath,
+ final String dataspaceName, final String anchorName) {
+ cpsDataService.replaceListNodeData(dataspaceName, anchorName, parentNodeXpath, jsonData);
+ return new ResponseEntity<>(HttpStatus.OK);
+ }
+
private static boolean isRootXpath(final String xpath) {
return ROOT_XPATH.equals(xpath);
}