diff options
Diffstat (limited to 'gui-clamp/ui-react/src/api/ControlLoopService.js')
-rw-r--r-- | gui-clamp/ui-react/src/api/ControlLoopService.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gui-clamp/ui-react/src/api/ControlLoopService.js b/gui-clamp/ui-react/src/api/ControlLoopService.js index 4a2fdbd..0d6e11c 100644 --- a/gui-clamp/ui-react/src/api/ControlLoopService.js +++ b/gui-clamp/ui-react/src/api/ControlLoopService.js @@ -41,6 +41,27 @@ export default class ControlLoopService { return response } + static async getInstanceOrderState(windowLocationPathName) { + const response = await fetch(windowLocationPathName + '/restservices/clds/v2/toscaControlLoop/getInstantiationOrderState'); + + const data = await response; + + return data; + } + + static async changeInstanceOrderState(toscaObject, windowLocationPathName) { + const response = await fetch(windowLocationPathName + '/restservices/clds/v2/toscaControlLoop/putToscaInstantiationStateChange', { + method: 'PUT', + headers: { + "Content-Type": "application/json" + }, + credentials: 'same-origin', + body: JSON.stringify(toscaObject) + }); + + return response + } + static async getToscaTemplate(name, version, windowLocationPathname) { const params = { name: name, |