From 41811daa6079e07d95daf3d32719afe7ec15acbd Mon Sep 17 00:00:00 2001 From: "saul.gill" Date: Thu, 15 Jul 2021 11:45:02 +0100 Subject: Added Camel Endpoints for decommissioning Added endpoint in camel for decommissioning Changed get tosca service template get endpoint to return snake case Added endpoints in camel to retrieve control loop definitions and element definitions Added integration tests Allowed error messages and status codes to come through from runtime-controlloop backend Small refactor of clamp python emulator Issue-ID: POLICY-3443 Change-Id: I2f6103ca0f2058651a43e7ae1e0974cb1d3e69a7 Signed-off-by: saul.gill --- .../resources/clds/camel/rest/clamp-api-v2.xml | 118 ++++++++++++++++++++- .../clds/camel/routes/controlloop-flows.xml | 81 ++++++++++++++ 2 files changed, 197 insertions(+), 2 deletions(-) (limited to 'runtime/src/main') diff --git a/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml b/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml index 8a7523c2b..3addb55f8 100644 --- a/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml +++ b/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml @@ -1475,7 +1475,7 @@ application/json - true + false - true + false application/json @@ -1543,6 +1543,50 @@ + + + + + true + + + application/json + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + Decommissioning Tosca Service Template FAILED + + + + + + @@ -1610,6 +1654,76 @@ + + + + + + + + application/json + + + true + + + + + java.lang.Exception + + true + + + + + 500 + + + GET JSON Schema FAILED + + + + + + + + + + + + + + application/json + + + true + + + + + java.lang.Exception + + true + + + + + 500 + + + GET Control Loop Definitions FAILED + + + + + + + + + + + + + DELETE + + + application/json + + + ${header.name} + + + ${header.version} + + + + + + + + + + @@ -132,4 +163,54 @@ + + + + + + + GET + + + application/json + + + + + + + + + + + + + + + + + GET + + + application/json + + + + + + + + + + -- cgit 1.2.3-korg