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" |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 13 | produces="application/json"> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame] | 14 | <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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 18 | </get> |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 19 | <get uri="/v2/loop/svgRepresentation/{loopName}" |
| 20 | outType="java.lang.String" |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 21 | produces="application/xml"> |
xg353y | 937c480 | 2019-03-20 16:01:43 +0100 | [diff] [blame] | 22 | <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> |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 26 | </get> |
michal.banka | 89695a3 | 2019-03-12 13:01:26 +0100 | [diff] [blame] | 27 | |
| 28 | <post uri="/v2/loop/updateGlobalProperties/{loopName}" |
xg353y | 937c480 | 2019-03-20 16:01:43 +0100 | [diff] [blame] | 29 | 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> |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 37 | </post> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 38 | <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"> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame] | 43 | <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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 47 | </post> |
xg353y | ec7f47a | 2019-03-14 16:27:49 +0100 | [diff] [blame] | 48 | <post uri="/v2/loop/updateMicroservicePolicy/{loopName}" |
| 49 | type="org.onap.clamp.policy.microservice.MicroServicePolicy" |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 50 | consumes="application/json" |
xg353y | ec7f47a | 2019-03-14 16:27:49 +0100 | [diff] [blame] | 51 | outType="org.onap.clamp.policy.microservice.MicroServicePolicy" |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 52 | produces="application/json"> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame] | 53 | <route> |
| 54 | <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" /> |
xg353y | ec7f47a | 2019-03-14 16:27:49 +0100 | [diff] [blame] | 55 | <to uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${body})" /> |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame] | 56 | </route> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 57 | </post> |
xg353y | 937c480 | 2019-03-20 16:01:43 +0100 | [diff] [blame] | 58 | <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> |
xg353y | a6d09fb | 2019-03-28 10:05:25 +0100 | [diff] [blame] | 74 | <put uri="/v2/loop/submit/{loopName}"> |
| 75 | <route> |
| 76 | <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" /> |
| 77 | <to uri="bean:org.onap.clamp.operation.LoopOperation?method=submitMsPolicies(${header.loopName})" /> |
| 78 | <!-- <to uri="bean:org.onap.clamp.operation.LoopOperation?method=submitOpPolicy(${header.loopName})" />--> |
| 79 | <!--<to uri="bean:org.onap.clamp.operation.LoopOperation?method=submitGuardPolicy(${header.loopName})" /> --> |
| 80 | </route> |
| 81 | </put> |
| 82 | <put uri="/v2/loop/delete/{loopName}" |
| 83 | outType="org.onap.clamp.loop.Loop" |
| 84 | produces="application/json"> |
| 85 | <route> |
| 86 | <to uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" /> |
| 87 | <to uri="bean:org.onap.clamp.operation.LoopOperation?method=deleteMsPolicies(${header.loopName})" /> |
| 88 | <to uri="bean:org.onap.clamp.operation.LoopOperation?method=deleteOpPolicy(${header.loopName})" /> |
| 89 | <to uri="bean:org.onap.clamp.operation.LoopOperation?method=deleteGuardPolicy(${header.loopName})" /> |
| 90 | </route> |
| 91 | </put> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 92 | </rest> |
| 93 | </rests> |
| 94 | |