blob: d4872ef45d89833fb6dae1a7d66c5000f3a3df23 [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>
sebdet8a272712019-03-07 16:38:22 +010020 <get uri="/v2/loop/svgRepresentation/{loopName}"
21 outType="java.lang.String"
22
23 produces="application/xml">
24 <to
25 uri="bean:org.onap.clamp.loop.LoopController?method=getSVGRepresentation(${header.loopName})" />
26 </get>
michal.banka89695a32019-03-12 13:01:26 +010027
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">
sebdet8a272712019-03-07 16:38:22 +010033 <to
michal.banka89695a32019-03-12 13:01:26 +010034 uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${body})" />
sebdet8a272712019-03-07 16:38:22 +010035 </post>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010036 <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">
xg353ya9be95f2019-03-11 13:47:22 +010041 <route>
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})" />
44 </route>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010045 </post>
xg353yec7f47a2019-03-14 16:27:49 +010046 <post uri="/v2/loop/updateMicroservicePolicy/{loopName}"
47 type="org.onap.clamp.policy.microservice.MicroServicePolicy"
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010048 consumes="application/json"
xg353yec7f47a2019-03-14 16:27:49 +010049 outType="org.onap.clamp.policy.microservice.MicroServicePolicy"
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010050 produces="application/json">
xg353ya9be95f2019-03-11 13:47:22 +010051 <route>
52 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
xg353yec7f47a2019-03-14 16:27:49 +010053 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${body})" />
xg353ya9be95f2019-03-11 13:47:22 +010054 </route>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010055 </post>
56 </rest>
57</rests>
58