X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fclds%2Fcamel%2Frest%2Fclamp-api-v2.xml;h=e6741d6f890d7afbcdbadf359e699ce2a7ec7a69;hb=580141f7cf72d4a120722fc7b870dfc5c3017ced;hp=280b808c30bd3737bc3a956a33bf1e107a301f74;hpb=d2a4df0b62b6a32c42bac45b4bee344016faa8fb;p=clamp.git
diff --git a/src/main/resources/clds/camel/rest/clamp-api-v2.xml b/src/main/resources/clds/camel/rest/clamp-api-v2.xml
index 280b808c..e6741d6f 100644
--- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml
+++ b/src/main/resources/clds/camel/rest/clamp-api-v2.xml
@@ -16,10 +16,19 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ GET All Loop names FAILED
+
@@ -40,10 +49,19 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ GET Loop FAILED
+
@@ -64,10 +82,19 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ GET SVG For loop FAILED
+
@@ -96,10 +123,19 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ UPDATE Global properties FAILED
+
@@ -127,10 +163,21 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+
+ 500
+
+
+ UPDATE Operational policies FAILED
+
@@ -161,10 +208,20 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ UPDATE MicroService policy FAILED
+
@@ -195,49 +252,102 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="DEPLOY request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ DEPLOY request FAILED
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+ java.lang.Exception
+
+ true
+
+
+
+
+
+ 500
+
+
+ REFRESH json schema request FAILED
+
+
+
+
+
+
-
+
+ message="Refresh Operational Policy UI for loop: ${header.loopName} and ${header.operationalPolicyName}" />
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH Operational Policy UI request')" />
+ uri="bean:org.onap.clamp.loop.LoopController?method=refreshOperationalPolicyJsonRepresentation(${exchangeProperty[loopObject]},${header.operationalPolicyName}})" />
+ message="REFRESH operational policy request successfully executed for loop: ${header.loopName}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH operational policy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="REFRESH json schema request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Json schema request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ REFRESH json schema request FAILED
+
@@ -267,14 +377,20 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="UNDEPLOY request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ UNDEPLOY request FAILED
+
@@ -304,14 +420,20 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="STOP request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ STOP request FAILED
+
@@ -342,14 +464,20 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="RESTART request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ RESTART request FAILED
+
@@ -377,51 +505,56 @@
${exchangeProperty[loopObject].getMicroServicePolicies()}
-
+
${body}
+ message="Processing Micro Service Policy: ${exchangeProperty[policy].getName()}" />
false
-
-
+
+
${exchangeProperty[loopObject].getOperationalPolicies()}
-
+
${body}
+ message="Processing Operational Policy: ${exchangeProperty[policy].getName()}" />
false
-
-
+
+
+
+
+ ${exchangeProperty['policy'].isLegacy()} == true
+
+
+
+ ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
+
+
+ ${body}
+
+
-
-
- ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
-
-
- ${body}
-
-
-
-
- false
-
-
-
-
+
+ false
+
+
+
+
+
+
@@ -439,14 +572,20 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="SUBMIT request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ SUBMIT request FAILED
+
@@ -502,7 +641,7 @@
+ uri="bean:org.onap.clamp.loop.log.LoopController?method=deleteLoop(${header.loopName})" />
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="DELETE request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ DELETE request FAILED
+
@@ -544,21 +689,27 @@
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request successfully executed','INFO',${exchangeProperty[loopObject]})" />
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="GET STATUS request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ GET STATUS request FAILED
+
@@ -569,46 +720,75 @@
-
+
-
+
-
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add operational Policy')" />
+ uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
-
-
-
+ uri="bean:org.onap.clamp.loop.LoopController?method=addOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
+
+
+
+ java.lang.Exception
+
+ true
+
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
-
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ ADD Operational policy request FAILED
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
java.lang.Exception
- false
+ true
+ message="REMOVE operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
-
-
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REMOVE OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
- ${exchangeProperty[loopObject]}
+ REMOVE Operational policy request FAILED
-
+
@@ -634,14 +814,18 @@
true
+
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ CREATE Loop from template FAILED
+
@@ -662,10 +846,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET Dictionary FAILED
+
@@ -687,10 +879,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET Dictionary FAILED
+
@@ -712,10 +912,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET Dictionary FAILED
+
@@ -739,10 +947,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ PUT Dictionary FAILED
+
@@ -769,10 +985,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ PUT Dictionary FAILED
+
@@ -793,10 +1017,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ DELETE Dictionary FAILED
+
@@ -819,10 +1051,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ DELETE Dictionary element FAILED
+
@@ -847,14 +1087,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Policy models FAILED
+
@@ -879,14 +1121,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Policy model FAILED
+
@@ -910,26 +1154,27 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Policy model YAML FAILED
+
-
-
+
@@ -939,7 +1184,7 @@
${body}
+ uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=createNewPolicyModelFromTosca(${exchangeProperty[PolicyModelTosca]})" />
@@ -947,14 +1192,16 @@
true
+
+
- 404
+ 500
-
- ERROR: ${exception.message}
-
-
+
+ POST Policy model YAML FAILED
+
@@ -983,14 +1230,16 @@
true
-
- 404
-
-
- ERROR: ${exception.message}
-
+
+
+ 500
+
+
+ MODIFY Policy model YAML FAILED
+
@@ -1015,14 +1264,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET ALL templates FAILED
+
@@ -1047,14 +1298,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Template FAILED
+
@@ -1075,10 +1328,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET All Template names FAILED
+
@@ -1099,10 +1360,18 @@
java.lang.Exception
- false
+ true
+
+
+ 500
+
+
+ GET SVG for Template FAILED
+