1 <rests xmlns="http://camel.apache.org/schema/spring" >
3 <get uri="/v2/loop/getAllNames"
4 outType="java.lang.String[]"
5 produces="application/json">
7 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
8 <to uri="bean:org.onap.clamp.loop.LoopController?method=getLoopNames()" />
11 <get uri="/v2/loop/{loopName}"
12 outType="org.onap.clamp.loop.Loop"
13 produces="application/json">
15 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
16 <to uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
19 <get uri="/v2/loop/svgRepresentation/{loopName}"
20 outType="java.lang.String"
21 produces="application/xml">
23 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
24 <to uri="bean:org.onap.clamp.loop.LoopController?method=getSVGRepresentation(${header.loopName})" />
28 <post uri="/v2/loop/updateGlobalProperties/{loopName}"
29 type="com.google.gson.JsonObject"
30 consumes="application/json"
31 outType="org.onap.clamp.loop.Loop"
32 produces="application/json">
34 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
35 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${body})" />
38 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
39 type="com.google.gson.JsonArray"
40 consumes="application/json"
41 outType="org.onap.clamp.loop.Loop"
42 produces="application/json">
44 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
45 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" />
48 <post uri="/v2/loop/updateMicroservicePolicy/{loopName}"
49 type="org.onap.clamp.policy.microservice.MicroServicePolicy"
50 consumes="application/json"
51 outType="org.onap.clamp.policy.microservice.MicroServicePolicy"
52 produces="application/json">
54 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
55 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${body})" />
58 <put uri="/v2/loop/deployLoop/{loopName}"
59 outType="org.onap.clamp.loop.Loop"
60 produces="application/json">
62 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
63 <to uri="bean:org.onap.clamp.operation.LoopOperation?method=deployLoop(*,${header.loopName})" />
66 <put uri="/v2/loop/undeployLoop/{loopName}"
67 outType="org.onap.clamp.loop.Loop"
68 produces="application/json">
70 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
71 <to uri="bean:org.onap.clamp.operation.LoopOperation?method=unDeployLoop(${header.loopName})" />