diff options
author | saul.gill <saul.gill@est.tech> | 2021-07-26 17:33:24 +0100 |
---|---|---|
committer | saul.gill <saul.gill@est.tech> | 2021-07-29 09:45:44 +0100 |
commit | 83c09e788eb75b287c946acbcba0d43cd3cd4681 (patch) | |
tree | 7a090a2227bb3a4143b14aa80ed40680801ff844 /gui-clamp/ui-react/src/api | |
parent | 29871bc266df6b4418f30311ce9d0ef9ddd9965c (diff) |
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 <saul.gill@est.tech>
Diffstat (limited to 'gui-clamp/ui-react/src/api')
-rw-r--r-- | gui-clamp/ui-react/src/api/ControlLoopService.js | 16 |
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 = { |