aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/api
diff options
context:
space:
mode:
authorSébastien Determe <sebastien.determe@intl.att.com>2019-07-29 11:17:17 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-29 11:17:17 +0000
commit2eb723772eb99e67d621165d38f289a260488b05 (patch)
tree626fe7951e8bafbb6a0c2962d7af9919696f367f /ui-react/src/api
parent190227aa1bbcdc164a17fbcc8de06f78c11ebdff (diff)
parentb09e7df8439398fc094a56ec33fa33950ac8fa9e (diff)
Merge "Rework Loop properties window"
Diffstat (limited to 'ui-react/src/api')
-rw-r--r--ui-react/src/api/LoopService.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/ui-react/src/api/LoopService.js b/ui-react/src/api/LoopService.js
index 020a3bf71..031ec638f 100644
--- a/ui-react/src/api/LoopService.js
+++ b/ui-react/src/api/LoopService.js
@@ -104,4 +104,28 @@ export default class LoopService {
return "";
});
}
+
+ static updateGlobalProperties(loopName, jsonData) {
+ return fetch('/restservices/clds/v2/loop/updateGlobalProperties/' + loopName, {
+ method: 'POST',
+ credentials: 'same-origin',
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify(jsonData),
+ })
+ .then(function (response) {
+ console.debug("updateGlobalProperties response received: ", response.status);
+ if (response.ok) {
+ return response.text();
+ } else {
+ console.error("updateGlobalProperties query failed");
+ return "";
+ }
+ })
+ .catch(function (error) {
+ console.error("updateGlobalProperties error received", error);
+ return "";
+ });
+ }
}