blob: c5828b28494b2216670827661ee9ab09139ec28a [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"
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010013 produces="application/json">
xg353ya9be95f2019-03-11 13:47:22 +010014 <route>
15 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
16 <to uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
17 </route>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010018 </get>
sebdet8a272712019-03-07 16:38:22 +010019 <get uri="/v2/loop/svgRepresentation/{loopName}"
20 outType="java.lang.String"
sebdet8a272712019-03-07 16:38:22 +010021 produces="application/xml">
xg353y937c4802019-03-20 16:01:43 +010022 <route>
23 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
24 <to uri="bean:org.onap.clamp.loop.LoopController?method=getSVGRepresentation(${header.loopName})" />
25 </route>
sebdet8a272712019-03-07 16:38:22 +010026 </get>
michal.banka89695a32019-03-12 13:01:26 +010027
28 <post uri="/v2/loop/updateGlobalProperties/{loopName}"
xg353y937c4802019-03-20 16:01:43 +010029 type="com.google.gson.JsonObject"
30 consumes="application/json"
31 outType="org.onap.clamp.loop.Loop"
32 produces="application/json">
33 <route>
34 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
35 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${body})" />
36 </route>
sebdet8a272712019-03-07 16:38:22 +010037 </post>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010038 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
39 type="com.google.gson.JsonArray"
40 consumes="application/json"
41 outType="org.onap.clamp.loop.Loop"
42 produces="application/json">
xg353ya9be95f2019-03-11 13:47:22 +010043 <route>
44 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
45 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" />
46 </route>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010047 </post>
xg353yec7f47a2019-03-14 16:27:49 +010048 <post uri="/v2/loop/updateMicroservicePolicy/{loopName}"
49 type="org.onap.clamp.policy.microservice.MicroServicePolicy"
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010050 consumes="application/json"
xg353yec7f47a2019-03-14 16:27:49 +010051 outType="org.onap.clamp.policy.microservice.MicroServicePolicy"
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010052 produces="application/json">
xg353ya9be95f2019-03-11 13:47:22 +010053 <route>
54 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
xg353yec7f47a2019-03-14 16:27:49 +010055 <to uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${body})" />
xg353ya9be95f2019-03-11 13:47:22 +010056 </route>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010057 </post>
xg353y937c4802019-03-20 16:01:43 +010058 <put uri="/v2/loop/deployLoop/{loopName}"
59 outType="org.onap.clamp.loop.Loop"
60 produces="application/json">
61 <route>
62 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
63 <to uri="bean:org.onap.clamp.operation.LoopOperation?method=deployLoop(*,${header.loopName})" />
64 </route>
65 </put>
66 <put uri="/v2/loop/undeployLoop/{loopName}"
67 outType="org.onap.clamp.loop.Loop"
68 produces="application/json">
69 <route>
70 <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
71 <to uri="bean:org.onap.clamp.operation.LoopOperation?method=unDeployLoop(${header.loopName})" />
72 </route>
73 </put>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010074 </rest>
75</rests>
76