blob: 442375278a629a627b520c0bb85bbfcb7d7f3141 [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>
23 <post uri="/v2/loop/globalProperties/{loopName}"
24 type="com.google.gson.JsonArray"
25 consumes="application/json"
26 outType="org.onap.clamp.loop.Loop"
27 produces="application/json">
28 <to
29 uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" />
30 </post>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010031 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
32 type="com.google.gson.JsonArray"
33 consumes="application/json"
34 outType="org.onap.clamp.loop.Loop"
35 produces="application/json">
36 <to
37 uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" />
38 </post>
39 <post uri="/v2/loop/updateMicroservicePolicies/{loopName}"
40 type="com.google.gson.JsonArray"
41 consumes="application/json"
42 outType="org.onap.clamp.loop.Loop"
43 produces="application/json">
44 <to
45 uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicies(${header.loopName},${body})" />
46 </post>
47 </rest>
48</rests>
49