blob: 0fd1250df769bda96d7d8bb14bc661728040d579 [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">
xg353ya9be95f2019-03-11 13:47:22 +01006 <route>
7 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
8 <to uri="bean:org.onap.clamp.loop.LoopController?method=getLoopNames()" />
9 </route>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010010 </get>
11 <get uri="/v2/loop/{loopName}"
12 outType="org.onap.clamp.loop.Loop"
13
14 produces="application/json">
xg353ya9be95f2019-03-11 13:47:22 +010015 <route>
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})" />
18 </route>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010019 </get>
20 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
21 type="com.google.gson.JsonArray"
22 consumes="application/json"
23 outType="org.onap.clamp.loop.Loop"
24 produces="application/json">
xg353ya9be95f2019-03-11 13:47:22 +010025 <route>
26 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
27 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" />
28 </route>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010029 </post>
30 <post uri="/v2/loop/updateMicroservicePolicies/{loopName}"
31 type="com.google.gson.JsonArray"
32 consumes="application/json"
33 outType="org.onap.clamp.loop.Loop"
34 produces="application/json">
xg353ya9be95f2019-03-11 13:47:22 +010035 <route>
36 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
37 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicies(${header.loopName},${body})" />
38 </route>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010039 </post>
40 </rest>
41</rests>
42