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> |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 20 | <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.banka | 89695a3 | 2019-03-12 13:01:26 +0100 | [diff] [blame] | 27 | |
| 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"> |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 33 | <to |
michal.banka | 89695a3 | 2019-03-12 13:01:26 +0100 | [diff] [blame] | 34 | uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${body})" /> |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 35 | </post> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 36 | <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"> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame] | 41 | <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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 45 | </post> |
xg353y | ec7f47a | 2019-03-14 16:27:49 +0100 | [diff] [blame] | 46 | <post uri="/v2/loop/updateMicroservicePolicy/{loopName}" |
| 47 | type="org.onap.clamp.policy.microservice.MicroServicePolicy" |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 48 | consumes="application/json" |
xg353y | ec7f47a | 2019-03-14 16:27:49 +0100 | [diff] [blame] | 49 | outType="org.onap.clamp.policy.microservice.MicroServicePolicy" |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 50 | produces="application/json"> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame] | 51 | <route> |
| 52 | <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" /> |
xg353y | ec7f47a | 2019-03-14 16:27:49 +0100 | [diff] [blame] | 53 | <to uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${body})" /> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame] | 54 | </route> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 55 | </post> |
| 56 | </rest> |
| 57 | </rests> |
| 58 | |