Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 1 | <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"> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame^] | 6 | <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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 10 | </get> |
| 11 | <get uri="/v2/loop/{loopName}" |
| 12 | outType="org.onap.clamp.loop.Loop" |
| 13 | |
| 14 | produces="application/json"> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame^] | 15 | <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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 19 | </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"> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame^] | 25 | <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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 29 | </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"> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame^] | 35 | <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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 39 | </post> |
| 40 | </rest> |
| 41 | </rests> |
| 42 | |