X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fclds%2Fcamel%2Frest%2Fclamp-api-v2.xml;h=505ea30d93e89831407be3650db648e950078958;hb=1761c819d08244adaf3bbb36f053884c89d1a0db;hp=3ed272e7c1552d028111c189db785f9387c298fe;hpb=ae6a9829f0c572cb4789812ea65871132ec861fd;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 3ed272e7..505ea30d 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,34 +49,19 @@
java.lang.Exception
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- java.lang.Exception
-
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ GET Loop FAILED
+
@@ -96,10 +90,19 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ UPDATE Global properties FAILED
+
@@ -121,16 +124,27 @@
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Operational policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+
+ 500
+
+
+ UPDATE Operational policies FAILED
+
@@ -161,10 +175,20 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ UPDATE MicroService policy FAILED
+
@@ -176,6 +200,9 @@
+
+ true
+
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.cds.CdsDataInstaller?method=updateCdsServiceProperties(${exchangeProperty[loopObject].getModelService()})" />
+
+ 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
+
@@ -249,6 +333,9 @@
+
+ true
+
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
+
@@ -286,6 +379,9 @@
+
+ true
+
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
+
@@ -323,6 +425,9 @@
+
+ true
+
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
+
@@ -361,6 +472,9 @@
+
+ true
+
${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[operationalPolicy].createGuardPolicyPayloads().entrySet()}
-
-
- ${body}
-
-
-
-
- false
-
-
-
-
+
+
@@ -439,14 +535,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
+
@@ -457,6 +559,9 @@
+
+ true
+
+
${exchangeProperty[loopObject].getMicroServicePolicies()}
-
+
${body}
-
+ message="Deleting Micro Service Policy: ${exchangeProperty[policy].getName()}" />
+
+ false
+
+
-
+ message="Deleting all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
${exchangeProperty[loopObject].getOperationalPolicies()}
-
+
${body}
-
-
-
- ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
-
-
- ${body}
-
-
-
-
+ message="Deleting Operational Policy: ${exchangeProperty[policy].getName()}" />
+
+ false
+
+
+ uri="bean:org.onap.clamp.loop.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
+
@@ -538,32 +642,33 @@
-
-
-
-
+
+
+
-
-
+
-
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]})" />
${exchangeProperty[loopObject]}
+
+ 200
+
@@ -587,14 +692,71 @@
java.lang.Exception
- false
+ true
+ message="ADD operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+
+ 500
+
+
+ ADD Operational policy request FAILED for loop: ${header.loopName}, ${exception.message}"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${header.policyName}
+
+
+ ${exchangeProperty[loopObject].getOperationalPolicy(header.policyName)}
+
+
+ false
+
+
+
+ false
+
+
+
+
+
+
+ java.lang.Exception
+
+ true
+
+
+
+
+
+ 500
+
+
+ REMOVE Operational policy request FAILED
+
@@ -621,14 +783,18 @@
true
+
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ CREATE Loop from template FAILED
+
@@ -649,10 +815,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET Dictionary FAILED
+
@@ -674,10 +848,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET Dictionary FAILED
+
@@ -699,10 +881,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET Dictionary FAILED
+
@@ -726,10 +916,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ PUT Dictionary FAILED
+
@@ -756,10 +954,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ PUT Dictionary FAILED
+
@@ -780,10 +986,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ DELETE Dictionary FAILED
+
@@ -806,10 +1020,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ DELETE Dictionary element FAILED
+
@@ -834,14 +1056,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Policy models FAILED
+
@@ -866,14 +1090,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Policy model FAILED
+
@@ -897,14 +1123,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Policy model YAML FAILED
+
@@ -933,14 +1161,16 @@
true
+
+
- 404
+ 500
-
- ERROR: ${exception.message}
-
-
+
+ POST Policy model YAML FAILED
+
@@ -969,14 +1199,16 @@
true
-
- 404
-
-
- ERROR: ${exception.message}
-
+
+
+ 500
+
+
+ MODIFY Policy model YAML FAILED
+
@@ -1001,14 +1233,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET ALL templates FAILED
+
@@ -1033,14 +1267,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Template FAILED
+
@@ -1061,34 +1297,18 @@
java.lang.Exception
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- java.lang.Exception
-
- false
+ true
+
+
+ 500
+
+
+ GET All Template names FAILED
+