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 uri="bean:org.onap.clamp.loop.LoopController?method=getLoopNames()" />
9 <get uri="/v2/loop/{loopName}"
10 outType="org.onap.clamp.loop.Loop"
12 produces="application/json">
14 uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
16 <get uri="/v2/loop/svgRepresentation/{loopName}"
17 outType="java.lang.String"
19 produces="application/xml">
21 uri="bean:org.onap.clamp.loop.LoopController?method=getSVGRepresentation(${header.loopName})" />
24 <post uri="/v2/loop/updateGlobalProperties/{loopName}"
25 type="com.google.gson.JsonObject"
26 consumes="application/json"
27 outType="org.onap.clamp.loop.Loop"
28 produces="application/json">
30 uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${body})" />
32 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
33 type="com.google.gson.JsonArray"
34 consumes="application/json"
35 outType="org.onap.clamp.loop.Loop"
36 produces="application/json">
38 uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" />
40 <post uri="/v2/loop/updateMicroservicePolicies/{loopName}"
41 type="com.google.gson.JsonArray"
42 consumes="application/json"
43 outType="org.onap.clamp.loop.Loop"
44 produces="application/json">
46 uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicies(${header.loopName},${body})" />