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"> |
| 6 | <to |
| 7 | uri="bean:org.onap.clamp.loop.LoopController?method=getLoopNames()" /> |
| 8 | </get> |
| 9 | <get uri="/v2/loop/{loopName}" |
| 10 | outType="org.onap.clamp.loop.Loop" |
| 11 | |
| 12 | produces="application/json"> |
| 13 | <to |
| 14 | uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" /> |
| 15 | </get> |
| 16 | <post uri="/v2/loop/updateOperationalPolicies/{loopName}" |
| 17 | type="com.google.gson.JsonArray" |
| 18 | consumes="application/json" |
| 19 | outType="org.onap.clamp.loop.Loop" |
| 20 | produces="application/json"> |
| 21 | <to |
| 22 | uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" /> |
| 23 | </post> |
| 24 | <post uri="/v2/loop/updateMicroservicePolicies/{loopName}" |
| 25 | type="com.google.gson.JsonArray" |
| 26 | consumes="application/json" |
| 27 | outType="org.onap.clamp.loop.Loop" |
| 28 | produces="application/json"> |
| 29 | <to |
| 30 | uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicies(${header.loopName},${body})" /> |
| 31 | </post> |
| 32 | </rest> |
| 33 | </rests> |
| 34 | |