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=1883145d7b92fc465161185de3af70d2ee978f1a;hpb=8230764f2a1cb8fd4843ec6738a28d592b7c440b;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 1883145d..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,14 +1,12 @@ - + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop')" /> java.lang.Exception - false + true + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + + 500 + + + GET All Loop names FAILED + - - + + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Loop')" /> 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,50 +208,42 @@ java.lang.Exception - false + true + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" /> + + + + 500 + + + UPDATE MicroService policy FAILED + - + - + + + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE DEPLOY request')" /> - - - - - - ${exchangeProperty[policyStatus]} == 'SUBMITTED' and - ${exchangeProperty[dcaeStatus]} == 'NOT_DEPLOYED' - - - - - - - - - + + + + @@ -236,50 +252,123 @@ 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 + - + - + + + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH Micro Service Policy UI request')" /> + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + REFRESH json schema request FAILED + + + + + + + + + + + - - - - ${exchangeProperty[dcaeStatus]} == 'DEPLOYED' - - - - - - - - - + + + + + java.lang.Exception + + true + + + + + + 500 + + + REFRESH json schema request FAILED + + + + + + + + + + + + + + + + + @@ -288,39 +377,41 @@ 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 + - + - + - + + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'STOP request')" /> + + - @@ -329,147 +420,150 @@ 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 + - + - + - + + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'RESTART request')" /> + - + + uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request successfully executed','INFO',${exchangeProperty[loopObject]})" /> 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 + - + - + - + + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'POLICY SUBMIT request')" /> + uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('POLICY SUBMIT request','INFO',${exchangeProperty[loopObject]})" /> 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 + + - @@ -478,35 +572,38 @@ 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 + - + - + + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'DELETE request')" /> + uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request','INFO',${exchangeProperty[loopObject]})" /> + ${exchangeProperty[loopObject].getMicroServicePolicies()} @@ -514,14 +611,12 @@ ${body} - - ${exchangeProperty[loopObject].getOperationalPolicies()} @@ -529,12 +624,10 @@ ${body} - - ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()} @@ -542,16 +635,14 @@ ${body} - - + @@ -560,69 +651,735 @@ 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 + - + - + - + + uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET STATUS request')" /> - - false + uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request','INFO',${exchangeProperty[loopObject]})" /> + + + + + + + + + + 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} + + uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionaryElement(${header.name}, ${exchangeProperty[DictionaryObject]})" /> 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 + + + + + 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 + + + + + + +