1 <rests xmlns="http://camel.apache.org/schema/spring">
3 <get uri="/v2/loop/getAllNames" outType="java.lang.String[]"
4 produces="application/json">
6 <removeHeaders pattern="*" />
9 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop')" />
11 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
13 uri="bean:org.onap.clamp.loop.LoopController?method=getLoopNames()" />
15 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
17 <exception>java.lang.Exception</exception>
19 <constant>false</constant>
22 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
27 <get uri="/v2/loop/{loopName}" outType="org.onap.clamp.loop.Loop"
28 produces="application/json">
30 <removeHeaders pattern="*" excludePattern="loopName" />
33 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Loop')" />
35 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
37 uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
39 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
41 <exception>java.lang.Exception</exception>
43 <constant>false</constant>
46 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
51 <get uri="/v2/loop/svgRepresentation/{loopName}"
52 outType="java.lang.String" produces="application/xml">
54 <removeHeaders pattern="*" excludePattern="loopName" />
57 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Get SVG Representation')" />
59 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
61 uri="bean:org.onap.clamp.loop.LoopController?method=getSvgRepresentation(${header.loopName})" />
63 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
65 <exception>java.lang.Exception</exception>
67 <constant>false</constant>
70 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
76 <post uri="/v2/loop/updateGlobalProperties/{loopName}"
77 type="com.google.gson.JsonObject" consumes="application/json"
78 outType="org.onap.clamp.loop.Loop" produces="application/json">
80 <removeHeaders pattern="*" excludePattern="loopName" />
83 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update the global properties')" />
85 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
86 <setHeader headerName="GlobalPropertiesJson">
87 <simple>${body}</simple>
89 <to uri="direct:load-loop" />
91 uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${header.GlobalPropertiesJson})" />
93 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Global Properties UPDATED','INFO',${exchangeProperty[loopObject]})" />
95 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
97 <exception>java.lang.Exception</exception>
99 <constant>false</constant>
102 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
107 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
108 type="com.google.gson.JsonArray" consumes="application/json"
109 outType="org.onap.clamp.loop.Loop" produces="application/json">
111 <removeHeaders pattern="*" excludePattern="loopName" />
114 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update operational policies')" />
116 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
117 <setHeader headerName="OperationalPoliciesArray">
118 <simple>${body}</simple>
120 <to uri="direct:load-loop" />
122 uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${header.OperationalPoliciesArray})" />
124 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Operational and Guard policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
126 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
128 <exception>java.lang.Exception</exception>
130 <constant>false</constant>
133 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
138 <post uri="/v2/loop/updateMicroservicePolicy/{loopName}"
139 type="org.onap.clamp.policy.microservice.MicroServicePolicy"
140 consumes="application/json"
141 outType="org.onap.clamp.policy.microservice.MicroServicePolicy"
142 produces="application/json">
144 <removeHeaders pattern="*" excludePattern="loopName" />
147 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update Microservice policies')" />
149 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
150 <setProperty propertyName="MicroServicePolicyObject">
151 <simple>${body}</simple>
154 <to uri="direct:load-loop" />
156 uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${exchangeProperty[MicroServicePolicyObject]})" />
158 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Micro Service policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
160 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
162 <exception>java.lang.Exception</exception>
164 <constant>false</constant>
167 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
172 <put uri="/v2/loop/deploy/{loopName}"
173 outType="org.onap.clamp.loop.Loop" produces="application/json">
175 <removeHeaders pattern="*" excludePattern="loopName" />
177 <log loggingLevel="INFO"
178 message="DCAE DEPLOY request for loop: ${header.loopName}" />
180 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE DEPLOY request')" />
182 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
183 <to uri="direct:load-loop" />
185 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DCAE DEPLOY request','INFO',${exchangeProperty[loopObject]})" />
187 <to uri="direct:deploy-loop" />
189 <log loggingLevel="INFO"
190 message="DEPLOY request successfully executed for loop: ${header.loopName}" />
192 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request successfully executed','INFO',${exchangeProperty[loopObject]})" />
194 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
196 <exception>java.lang.Exception</exception>
198 <constant>false</constant>
201 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
202 <log loggingLevel="ERROR"
203 message="DEPLOY request failed for loop: ${header.loopName}" />
205 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
211 uri="/v2/loop/refreshOpPolicyJsonSchema/{loopName}"
212 outType="org.onap.clamp.loop.Loop"
213 produces="application/json">
217 excludePattern="loopName" />
221 message="Refresh Operational Policy UI for loop: ${header.loopName}" />
223 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH OP Policy UI request')" />
225 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
226 <to uri="direct:load-loop" />
228 uri="bean:org.onap.clamp.loop.LoopController?method=refreshOpPolicyJsonRepresentation(${header.loopName})" />
231 message="REFRESH request successfully executed for loop: ${header.loopName}" />
233 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH request successfully executed','INFO',${exchangeProperty[loopObject]})" />
235 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
237 <exception>java.lang.Exception</exception>
239 <constant>false</constant>
242 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
245 message="REFRESH request failed for loop: ${header.loopName}" />
247 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
253 uri="/v2/loop/undeploy/{loopName}"
254 outType="org.onap.clamp.loop.Loop"
255 produces="application/json">
257 <removeHeaders pattern="*" excludePattern="loopName" />
259 <log loggingLevel="INFO"
260 message="DCAE UNDEPLOY request for loop: ${header.loopName}" />
262 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE UNDEPLOY request')" />
264 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
265 <to uri="direct:load-loop" />
267 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DCAE UNDEPLOY request','INFO',${exchangeProperty[loopObject]})" />
268 <to uri="direct:undeploy-loop" />
270 <log loggingLevel="INFO"
271 message="UNDEPLOY request successfully executed for loop: ${header.loopName}" />
273 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request successfully executed','INFO',${exchangeProperty[loopObject]})" />
275 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
277 <exception>java.lang.Exception</exception>
279 <constant>false</constant>
282 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
283 <log loggingLevel="ERROR"
284 message="UNDEPLOY request failed for loop: ${header.loopName}" />
286 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
291 <put uri="/v2/loop/stop/{loopName}"
292 outType="org.onap.clamp.loop.Loop" produces="application/json">
294 <removeHeaders pattern="*" excludePattern="loopName" />
296 <log loggingLevel="INFO"
297 message="STOP request for loop: ${header.loopName}" />
299 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'STOP request')" />
301 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
302 <to uri="direct:load-loop" />
304 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request','INFO',${exchangeProperty[loopObject]})" />
306 <to uri="direct:remove-all-policy-from-active-pdp-group" />
307 <log loggingLevel="INFO"
308 message="STOP request successfully executed for loop: ${header.loopName}" />
310 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request successfully executed','INFO',${exchangeProperty[loopObject]})" />
312 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
314 <exception>java.lang.Exception</exception>
316 <constant>false</constant>
319 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
320 <log loggingLevel="ERROR"
321 message="STOP request failed for loop: $${header.loopName}" />
323 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
328 <put uri="/v2/loop/restart/{loopName}"
329 outType="org.onap.clamp.loop.Loop" produces="application/json">
331 <removeHeaders pattern="*" excludePattern="loopName" />
333 <log loggingLevel="INFO"
334 message="RESTART request for loop: ${header.loopName}" />
336 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'RESTART request')" />
338 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
339 <to uri="direct:load-loop" />
342 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request','INFO',${exchangeProperty[loopObject]})" />
344 <to uri="direct:add-all-to-active-pdp-group" />
345 <log loggingLevel="INFO"
346 message="RESTART request successfully executed for loop: ${header.loopName}" />
348 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request successfully executed','INFO',${exchangeProperty[loopObject]})" />
350 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
352 <exception>java.lang.Exception</exception>
354 <constant>false</constant>
357 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
358 <log loggingLevel="ERROR"
359 message="RESTART request failed for loop: ${header.loopName}" />
361 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request failed, Error reported: ${exception} - Body: ${exception.responseBody}','INFO',${exchangeProperty[loopObject]})" />
366 <put uri="/v2/loop/submit/{loopName}"
367 outType="org.onap.clamp.loop.Loop" produces="application/json">
369 <removeHeaders pattern="*" excludePattern="loopName" />
371 <log loggingLevel="INFO"
372 message="POLICY SUBMIT request for loop: ${header.loopName}" />
374 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'POLICY SUBMIT request')" />
376 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
377 <to uri="direct:load-loop" />
379 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('POLICY SUBMIT request','INFO',${exchangeProperty[loopObject]})" />
380 <setProperty propertyName="raiseHttpExceptionFlag">
381 <simple resultType="java.lang.Boolean">false</simple>
383 <to uri="direct:remove-all-policy-from-active-pdp-group" />
384 <log loggingLevel="INFO"
385 message="Processing all MICRO-SERVICES policies defined in loop ${exchangeProperty[loopObject].getName()}" />
387 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
389 <setProperty propertyName="microServicePolicy">
390 <simple>${body}</simple>
392 <log loggingLevel="INFO"
393 message="Processing Micro Service Policy: ${exchangeProperty[microServicePolicy].getName()}" />
394 <setProperty propertyName="raiseHttpExceptionFlag">
395 <simple resultType="java.lang.Boolean">false</simple>
397 <to uri="direct:delete-micro-service-policy" />
398 <to uri="direct:create-micro-service-policy" />
400 <log loggingLevel="INFO"
401 message="Processing all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
403 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
405 <setProperty propertyName="operationalPolicy">
406 <simple>${body}</simple>
408 <log loggingLevel="INFO"
409 message="Processing Operational Policy: ${exchangeProperty[operationalPolicy].getName()}" />
410 <setProperty propertyName="raiseHttpExceptionFlag">
411 <simple resultType="java.lang.Boolean">false</simple>
414 <to uri="direct:delete-operational-policy" />
415 <to uri="direct:create-operational-policy" />
417 <log loggingLevel="INFO"
418 message="Processing all GUARD policies defined in loop ${exchangeProperty[loopObject].getName()}" />
420 <simple>${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
422 <setProperty propertyName="guardPolicy">
423 <simple>${body}</simple>
425 <log loggingLevel="INFO"
426 message="Processing Guard Policy: ${exchangeProperty[guardPolicy].getKey()}" />
428 <setProperty propertyName="raiseHttpExceptionFlag">
429 <simple resultType="java.lang.Boolean">false</simple>
431 <to uri="direct:delete-guard-policy" />
432 <to uri="direct:create-guard-policy" />
437 <constant>3000</constant>
440 <to uri="direct:add-all-to-active-pdp-group" />
442 <log loggingLevel="INFO"
443 message="SUBMIT request successfully executed for loop: ${header.loopName}" />
445 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request successfully executed','INFO',${exchangeProperty[loopObject]})" />
447 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
449 <exception>java.lang.Exception</exception>
451 <constant>false</constant>
454 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
455 <log loggingLevel="ERROR"
456 message="SUBMIT request failed for loop: ${header.loopName}" />
458 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
463 <put uri="/v2/loop/delete/{loopName}">
465 <removeHeaders pattern="*" excludePattern="loopName" />
467 <log loggingLevel="INFO"
468 message="DELETE request for loop: ${header.loopName}" />
470 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'DELETE request')" />
472 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
473 <to uri="direct:load-loop" />
475 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request','INFO',${exchangeProperty[loopObject]})" />
476 <to uri="direct:undeploy-loop" />
477 <to uri="direct:remove-all-policy-from-active-pdp-group" />
479 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
481 <setProperty propertyName="microServicePolicy">
482 <simple>${body}</simple>
484 <log loggingLevel="INFO"
485 message="Processing Micro Service Policy: ${exchangeProperty[microServicePolicy].getName()}" />
486 <to uri="direct:delete-micro-service-policy" />
489 <log loggingLevel="INFO"
490 message="Processing all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
492 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
494 <setProperty propertyName="operationalPolicy">
495 <simple>${body}</simple>
497 <log loggingLevel="INFO"
498 message="Processing Operational Policy: ${exchangeProperty[operationalPolicy].getName()}" />
499 <to uri="direct:delete-operational-policy" />
500 <log loggingLevel="INFO"
501 message="Processing all GUARD policies defined in loop ${exchangeProperty[loopObject].getName()}" />
503 <simple>${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
505 <setProperty propertyName="guardPolicy">
506 <simple>${body}</simple>
508 <log loggingLevel="INFO"
509 message="Processing Guard Policy: ${exchangeProperty[guardPolicy].getKey()}" />
510 <to uri="direct:delete-guard-policy" />
514 uri="bean:org.onap.clamp.loop.log.LoopService?method=deleteLoop(${header.loopName})" />
515 <log loggingLevel="INFO"
516 message="DELETE request successfully executed for loop: ${header.loopName}" />
518 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request successfully executed','INFO',${exchangeProperty[loopObject]})" />
520 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
522 <exception>java.lang.Exception</exception>
524 <constant>false</constant>
527 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
528 <log loggingLevel="ERROR"
529 message="DELETE request failed for loop: ${header.loopName}" />
531 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
536 <get uri="/v2/loop/getstatus/{loopName}"
537 outType="org.onap.clamp.loop.Loop" produces="application/json">
539 <removeHeaders pattern="*" excludePattern="loopName" />
541 <log loggingLevel="INFO"
542 message="GET STATUS request for loop: ${header.loopName}" />
544 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET STATUS request')" />
546 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
547 <to uri="direct:load-loop" />
549 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request','INFO',${exchangeProperty[loopObject]})" />
551 <to uri="direct:update-policy-status-for-loop" />
552 <to uri="direct:update-dcae-status-for-loop" />
553 <to uri="direct:update-loop-state" />
556 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Get Status request successfully executed','INFO',${exchangeProperty[loopObject]})" />
558 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
561 <exception>java.lang.Exception</exception>
563 <constant>false</constant>
566 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
567 <log loggingLevel="ERROR"
568 message="Get Status request failed for loop: ${header.loopName}" />
570 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Get Status request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
574 <simple>${exchangeProperty[loopObject]}</simple>
581 <get uri="/v2/dictionary"
582 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
584 <removeHeaders pattern="*" />
587 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionaries')" />
589 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
591 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllDictionaries()" />
593 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
595 <exception>java.lang.Exception</exception>
597 <constant>false</constant>
600 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
606 <get uri="/v2/dictionary/secondary/names"
607 outType="java.lang.String[]" produces="application/json">
609 <removeHeaders pattern="*" />
612 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Secondary Dictionary Level Names')" />
614 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
616 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllSecondaryLevelDictionaryNames()" />
618 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
620 <exception>java.lang.Exception</exception>
622 <constant>false</constant>
625 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
630 <get uri="/v2/dictionary/{dictionaryName}"
631 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
633 <removeHeaders pattern="*"
634 excludePattern="dictionaryName" />
637 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionary Elements for a Dictionary Name')" />
639 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
641 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getDictionary(${header.dictionaryName})" />
643 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
645 <exception>java.lang.Exception</exception>
647 <constant>false</constant>
650 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
655 <put uri="/v2/dictionary" type="org.onap.clamp.tosca.Dictionary"
656 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
657 produces="application/json">
661 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary')" />
663 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
664 <setProperty propertyName="DictionaryObject">
665 <simple>${body}</simple>
668 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionary(${exchangeProperty[DictionaryObject]})" />
670 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
672 <exception>java.lang.Exception</exception>
674 <constant>false</constant>
677 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
683 <put uri="/v2/dictionary/{name}"
684 type="org.onap.clamp.tosca.Dictionary"
685 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
686 produces="application/json">
688 <removeHeaders pattern="*" excludePattern="name" />
691 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary Element')" />
693 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
694 <setProperty propertyName="DictionaryObject">
695 <simple>${body}</simple>
698 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionaryElement(${header.name}, ${exchangeProperty[DictionaryObject]})" />
700 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
702 <exception>java.lang.Exception</exception>
704 <constant>false</constant>
707 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
713 <delete uri="/v2/dictionary/{name}" produces="application/json">
715 <removeHeaders pattern="*" excludePattern="name" />
718 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary')" />
720 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
722 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionary(${header.name})" />
724 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
726 <exception>java.lang.Exception</exception>
728 <constant>false</constant>
731 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
737 <delete uri="/v2/dictionary/{name}/elements/{shortName}"
738 produces="application/json">
740 <removeHeaders pattern="*"
741 excludePattern="name|shortName" />
744 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary Element')" />
746 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
748 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionaryElement(${header.name}, ${header.shortName})" />
750 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
752 <exception>java.lang.Exception</exception>
754 <constant>false</constant>
757 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
763 <get uri="/v2/policyToscaModels"
764 outType="org.onap.clamp.loop.template.PolicyModel"
765 produces="application/json">
767 <removeHeaders pattern="*" />
770 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Tosca Policy Models')" />
772 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
774 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getAllPolicyModels()" />
776 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
778 <exception>java.lang.Exception</exception>
780 <constant>true</constant>
782 <setHeader headerName="CamelHttpResponseCode">
783 <constant>500</constant>
786 <simple>ERROR: ${exception.message}</simple>
789 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
794 <get uri="/v2/policyToscaModels/{policyModelType}"
795 outType="org.onap.clamp.loop.template.PolicyModel"
796 produces="application/json">
798 <removeHeaders pattern="*"
799 excludePattern="policyModelType" />
802 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model by Name')" />
804 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
806 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelByType(${header.policyModelType})" />
808 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
810 <exception>java.lang.Exception</exception>
812 <constant>true</constant>
814 <setHeader headerName="CamelHttpResponseCode">
815 <constant>500</constant>
818 <simple>ERROR: ${exception.message}</simple>
821 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
826 <get uri="/v2/policyToscaModels/yaml/{policyModelType}"
827 outType="java.lang.String" produces="application/json">
829 <removeHeaders pattern="*"
830 excludePattern="policyModelType" />
833 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model Yaml String by Name')" />
835 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
837 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelTosca(${header.policyModelType})" />
839 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
841 <exception>java.lang.Exception</exception>
843 <constant>true</constant>
845 <setHeader headerName="CamelHttpResponseCode">
846 <constant>500</constant>
849 <simple>ERROR: ${exception.message}</simple>
852 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
858 <put uri="/v2/policyToscaModels/{policyModelType}"
859 type="java.lang.String"
860 outType="org.onap.clamp.loop.template.PolicyModel"
861 consumes="plain/text" produces="application/json">
863 <removeHeaders pattern="*"
864 excludePattern="policyModelType" />
867 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
869 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
870 <setProperty propertyName="PolicyModelObject">
871 <simple>${body}</simple>
874 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=saveOrUpdateByPolicyModelType(${header.policyModelType},${exchangeProperty[PolicyModelObject]})" />
876 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
878 <exception>java.lang.Exception</exception>
880 <constant>true</constant>
882 <setHeader headerName="CamelHttpResponseCode">
883 <constant>404</constant>
886 <simple>ERROR: ${exception.message}</simple>
889 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
896 <get uri="/v2/templates"
897 outType="org.onap.clamp.loop.template.LoopTemplate"
898 produces="application/json">
900 <removeHeaders pattern="*" />
903 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Templates')" />
905 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
907 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getAllLoopTemplates()" />
909 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
911 <exception>java.lang.Exception</exception>
913 <constant>true</constant>
915 <setHeader headerName="CamelHttpResponseCode">
916 <constant>500</constant>
919 <simple>ERROR: ${exception.message}</simple>
922 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
927 <get uri="/v2/templates/{templateName}"
928 outType="org.onap.clamp.loop.template.LoopTemplate"
929 produces="application/json">
931 <removeHeaders pattern="*"
932 excludePattern="templateName" />
935 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET a Template by NAME')" />
937 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
939 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplate(${header.templateName})" />
941 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
943 <exception>java.lang.Exception</exception>
945 <constant>true</constant>
947 <setHeader headerName="CamelHttpResponseCode">
948 <constant>500</constant>
951 <simple>ERROR: ${exception.message}</simple>
954 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
959 <get uri="/v2/templates/names" outType="java.lang.String[]"
960 produces="application/json">
962 <removeHeaders pattern="*" />
965 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop Template Names')" />
967 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
969 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplateNames()" />
971 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
973 <exception>java.lang.Exception</exception>
975 <constant>false</constant>
978 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />