summaryrefslogtreecommitdiffstats
path: root/gui-clamp/ui-react/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'gui-clamp/ui-react/src/api')
-rw-r--r--gui-clamp/ui-react/src/api/ControlLoopService.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/gui-clamp/ui-react/src/api/ControlLoopService.js b/gui-clamp/ui-react/src/api/ControlLoopService.js
index 1f3cbed..5938bd2 100644
--- a/gui-clamp/ui-react/src/api/ControlLoopService.js
+++ b/gui-clamp/ui-react/src/api/ControlLoopService.js
@@ -119,6 +119,22 @@ export default class ControlLoopService {
}
+ static async getCommonProperties(name, version, windowLocationPathName) {
+ const params = {
+ name: name,
+ version: version,
+ common: "true"
+ }
+
+ const response = await fetch(windowLocationPathName +
+ '/restservices/clds/v2/toscaControlLoop/getCommonOrInstanceProperties' + '?' + (new URLSearchParams(params)));
+
+ this.checkResponseForError(response);
+
+ return response;
+
+ }
+
static async getToscaServiceTemplateSchema(section, windowLocationPathName) {
const params = {