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=8dfc068831c5fdec528b0d33d16340c4fa07a80d;hpb=b38821c4136369ef50680b24c55d76ec3898af54;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 8dfc0688..e6741d6f 100644 --- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml +++ b/src/main/resources/clds/camel/rest/clamp-api-v2.xml @@ -1,8 +1,6 @@ - @@ -18,22 +16,27 @@ java.lang.Exception - false + true + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + + 500 + + + GET All Loop names FAILED + - - + @@ -46,53 +49,62 @@ java.lang.Exception - false + true + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + + 500 + + + GET Loop FAILED + - + - + + uri="bean:org.onap.clamp.loop.LoopController?method=getSvgRepresentation(${header.loopName})" /> java.lang.Exception - false + true + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + + 500 + + + GET SVG For loop FAILED + - + - + @@ -111,24 +123,28 @@ java.lang.Exception - false + true + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + + 500 + + + UPDATE Global properties FAILED + - + - + @@ -147,24 +163,32 @@ java.lang.Exception - false + true + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + + + 500 + + + UPDATE Operational policies FAILED + - - + @@ -184,25 +208,30 @@ java.lang.Exception - false + true + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + + 500 + + + UPDATE MicroService policy FAILED + - + - + - @@ -211,29 +240,10 @@ - - - - - - - ${exchangeProperty[policyStatus]} == 'SUBMITTED' and - ${exchangeProperty[dcaeStatus]} == 'NOT_DEPLOYED' - - - - - - - - - + + @@ -242,30 +252,112 @@ java.lang.Exception - false + true - + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + 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 + + + + + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + REFRESH json schema request FAILED + + + + + + + + + + @@ -274,23 +366,9 @@ - - - - ${exchangeProperty[dcaeStatus]} == 'DEPLOYED' or ${exchangeProperty[dcaeStatus]} == 'IN_ERROR' or ${exchangeProperty[dcaeStatus]} == 'PROCESSING' - - - - - - - - - + + @@ -299,30 +377,30 @@ java.lang.Exception - false + true - + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + 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 + - + - + - @@ -331,10 +409,9 @@ - + - @@ -343,30 +420,30 @@ java.lang.Exception - false + true - + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + 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 + - + - + - @@ -378,8 +455,7 @@ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request','INFO',${exchangeProperty[loopObject]})" /> - @@ -388,30 +464,30 @@ java.lang.Exception - false + true - + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + 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 + - + - + - @@ -424,68 +500,70 @@ false - ${exchangeProperty[loopObject].getMicroServicePolicies()} - + ${body} - + false - - + + - ${exchangeProperty[loopObject].getOperationalPolicies()} - + ${body} - + false - - - - - - ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()} - - - ${body} - - + + + + + ${exchangeProperty['policy'].isLegacy()} == true + + + + ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()} + + + ${body} + + - - false - - - - + + false + + + + + + + + 3000 + + - @@ -494,27 +572,29 @@ java.lang.Exception - false + true - + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + 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 + - + - @@ -523,6 +603,7 @@ + ${exchangeProperty[loopObject].getMicroServicePolicies()} @@ -530,14 +611,12 @@ ${body} - - ${exchangeProperty[loopObject].getOperationalPolicies()} @@ -545,12 +624,10 @@ ${body} - - ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()} @@ -558,16 +635,14 @@ ${body} - - + @@ -576,30 +651,30 @@ java.lang.Exception - false + true - + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + 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 + - + - + - @@ -608,39 +683,703 @@ - - false + + + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + GET STATUS request FAILED + + + + + ${exchangeProperty[loopObject]} + + + + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + ADD Operational policy request FAILED + + + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + REMOVE Operational policy request FAILED + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + CREATE Loop from template FAILED + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET Dictionary FAILED + + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET Dictionary FAILED + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET Dictionary FAILED + + + + + + + + + + + + ${body} - - - + uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionary(${exchangeProperty[DictionaryObject]})" /> + + + java.lang.Exception + + true + + + + + 500 + + + PUT Dictionary FAILED + + + + + + + + + + + + uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" /> + + ${body} + + java.lang.Exception - false + true - + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + 500 + + + PUT Dictionary FAILED + + + + + + + + + + + + + + + + java.lang.Exception + + true + + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + 500 + + + DELETE Dictionary FAILED + - + + + + + + + + + + + + + + java.lang.Exception + + true + - + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + 500 + + + DELETE Dictionary element FAILED + + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET Policy models FAILED + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET Policy model FAILED + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET Policy model YAML FAILED + + + + + + + + + + + + + + ${body} + + + + + java.lang.Exception + + true + + + + + 500 + + + POST Policy model YAML FAILED + + + + + + + + + + + + + ${body} + + + + + java.lang.Exception + + true + + + + + 500 + + + MODIFY Policy model YAML FAILED + + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET ALL templates FAILED + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET Template FAILED + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET All Template names FAILED + + + + + + + + + + + + + + + java.lang.Exception + + true + + + + + 500 + + + GET SVG for Template FAILED + + + + + + + +