summaryrefslogtreecommitdiffstats
path: root/src/main/resources/clds/camel/rest/clamp-api-v2.xml
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-04-21 16:28:33 +0200
committersebdet <sebastien.determe@intl.att.com>2021-04-23 17:35:17 +0200
commitd1ed0a9ba6ffea4006fadf3847495563d11dc12e (patch)
tree4ced12d9a953aa0fddd1c6a8002836964020d94d /src/main/resources/clds/camel/rest/clamp-api-v2.xml
parent5ce5937197df5eed3895e2590ea31b23207026b4 (diff)
ToscaFileSelector
The UI code that manages the tosca file selector that will be sent to clamp be + fix Rest Camel endpoint that always want ot convert http body to JSON (due to Camel upgrade) Issue-ID: POLICY-3229 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I6148276d4c527f29db904a76655055c19d4e2023
Diffstat (limited to 'src/main/resources/clds/camel/rest/clamp-api-v2.xml')
-rw-r--r--src/main/resources/clds/camel/rest/clamp-api-v2.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/resources/clds/camel/rest/clamp-api-v2.xml b/src/main/resources/clds/camel/rest/clamp-api-v2.xml
index 3238822d3..c789735d2 100644
--- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml
+++ b/src/main/resources/clds/camel/rest/clamp-api-v2.xml
@@ -1501,7 +1501,7 @@
</route>
</put>
- <post uri="/v2/policies/policytype" consumes="application/yaml">
+ <post uri="/v2/policies/policytype" type="java.lang.String" consumes="plain/text">
<route>
<removeHeaders pattern="*"/>
<doTry>
@@ -1514,6 +1514,8 @@
</setProperty>
<to uri="direct:create-policy-type"/>
<to
+ uri="bean:org.onap.policy.clamp.policy.downloader.PolicyEngineController?method=synchronizeAllPolicies()"/>
+ <to
uri="bean:org.onap.policy.clamp.flow.log.FlowLogOperation?method=endLog()"/>
<doCatch>
<exception>java.lang.Exception</exception>