From 83c09e788eb75b287c946acbcba0d43cd3cd4681 Mon Sep 17 00:00:00 2001 From: "saul.gill" Date: Mon, 26 Jul 2021 17:33:24 +0100 Subject: Added Common Parameter Form Added save button for user edits Added commission button to push up edits Added service to retrieve common parameters Issue-ID: POLICY-3439 Change-Id: Ia355f36bf263bb1385db363a267c53af86504905 Signed-off-by: saul.gill --- gui-clamp/ui-react/src/api/ControlLoopService.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gui-clamp/ui-react/src/api/ControlLoopService.js') 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 = { -- cgit 1.2.3-korg