aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/clds/camel/rest/clamp-api-v2.xml
diff options
context:
space:
mode:
authorS�bastien Determe <sebastien.determe@intl.att.com>2021-04-23 15:54:07 +0000
committerGerrit Code Review <gerrit@onap.org>2021-04-23 15:54:07 +0000
commit6128857eaa9c6b54bf95cca5f1d6dd2a7bfa1413 (patch)
tree2720337bbe05e4a0eef1f3f66f45776912373ba3 /src/main/resources/clds/camel/rest/clamp-api-v2.xml
parent9a9e21d172bfe8342755e713136c805bf6139832 (diff)
parentd1ed0a9ba6ffea4006fadf3847495563d11dc12e (diff)
Merge "ToscaFileSelector"
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>