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"
14 produces="application/json">
16 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
17 <to uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
20 <get uri="/v2/loop/svgRepresentation/{loopName}"
21 outType="java.lang.String"
23 produces="application/xml">
25 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 uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${body})" />
36 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
37 type="com.google.gson.JsonArray"
38 consumes="application/json"
39 outType="org.onap.clamp.loop.Loop"
40 produces="application/json">
42 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
43 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" />
46 <post uri="/v2/loop/updateMicroservicePolicy/{loopName}"
47 type="org.onap.clamp.policy.microservice.MicroServicePolicy"
48 consumes="application/json"
49 outType="org.onap.clamp.policy.microservice.MicroServicePolicy"
50 produces="application/json">
52 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
53 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${body})" />