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> |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 16 | <get uri="/v2/loop/svgRepresentation/{loopName}" |
| 17 | outType="java.lang.String" |
| 18 | |
| 19 | produces="application/xml"> |
| 20 | <to |
| 21 | uri="bean:org.onap.clamp.loop.LoopController?method=getSVGRepresentation(${header.loopName})" /> |
| 22 | </get> |
michal.banka | 89695a3 | 2019-03-12 13:01:26 +0100 | [diff] [blame^] | 23 | |
| 24 | <post uri="/v2/loop/updateGlobalProperties/{loopName}" |
| 25 | type="com.google.gson.JsonObject" |
| 26 | consumes="application/json" |
| 27 | outType="org.onap.clamp.loop.Loop" |
| 28 | produces="application/json"> |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 29 | <to |
michal.banka | 89695a3 | 2019-03-12 13:01:26 +0100 | [diff] [blame^] | 30 | uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${body})" /> |
sebdet | 8a27271 | 2019-03-07 16:38:22 +0100 | [diff] [blame] | 31 | </post> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame] | 32 | <post uri="/v2/loop/updateOperationalPolicies/{loopName}" |
| 33 | type="com.google.gson.JsonArray" |
| 34 | consumes="application/json" |
| 35 | outType="org.onap.clamp.loop.Loop" |
| 36 | produces="application/json"> |
| 37 | <to |
| 38 | uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${body})" /> |
| 39 | </post> |
| 40 | <post uri="/v2/loop/updateMicroservicePolicies/{loopName}" |
| 41 | type="com.google.gson.JsonArray" |
| 42 | consumes="application/json" |
| 43 | outType="org.onap.clamp.loop.Loop" |
| 44 | produces="application/json"> |
| 45 | <to |
| 46 | uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicies(${header.loopName},${body})" /> |
| 47 | </post> |
| 48 | </rest> |
| 49 | </rests> |
| 50 | |