blob: abc7dc0911e4b8d91915eb58319ffbe4991f5ab8 [file] [log] [blame]
Krysiak Adam5f14c7a2019-03-01 15:32:19 +01001<rests xmlns="http://camel.apache.org/schema/spring" >
2 <rest >
3 <get uri="/v2/loop/getAllNames"
4 outType="java.lang.String[]"
5 produces="application/json">
6 <to
7 uri="bean:org.onap.clamp.loop.LoopController?method=getLoopNames()" />
8 </get>
9 <get uri="/v2/loop/{loopName}"
10 outType="org.onap.clamp.loop.Loop"
11
12 produces="application/json">
13 <to
14 uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
15 </get>
sebdet8a272712019-03-07 16:38:22 +010016 <get uri="/v2/loop/svgRepresentation/{loopName}"
17 outType="java.lang.String"
18
19 produces="application/xml">
20 <to
21 uri="bean:org.onap.clamp.loop.LoopController?method=getSVGRepresentation(${header.loopName})" />
22 </get>
michal.banka89695a32019-03-12 13:01:26 +010023
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">
sebdet8a272712019-03-07 16:38:22 +010029 <to
michal.banka89695a32019-03-12 13:01:26 +010030 uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${body})" />
sebdet8a272712019-03-07 16:38:22 +010031 </post>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010032 <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">
37 <to
38 uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" />
39 </post>
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">
45 <to
46 uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicies(${header.loopName},${body})" />
47 </post>
48 </rest>
49</rests>
50