diff options
author | sebdet <sebastien.determe@intl.att.com> | 2021-02-12 17:18:47 +0100 |
---|---|---|
committer | Liam Fallon <liam.fallon@est.tech> | 2021-02-19 14:30:28 +0000 |
commit | af040a80000e4a0f1a98d251a78fc6b55aa6c1f4 (patch) | |
tree | 0e5725ca508154ed2eaeeca96139ba18daae8e64 /src/main/resources/clds | |
parent | ca7106064d68a5411ec61084bdfbd7f027375f5f (diff) |
Modify Backend for listing the policies
Improve Ui components to list policies + changes an existing camel route to expose the policy json schema properly. New files added to emulator for testing + comments added.
Now the Ui can show the policy config
Issue-ID: POLICY-3061
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Iacf9577a4ab2cc927d05ff267e7356d8410eb77a
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
(cherry picked from commit 3718a16bedbc4a5ecf2593abcb2075238fa99767)
Diffstat (limited to 'src/main/resources/clds')
-rw-r--r-- | src/main/resources/clds/camel/rest/clamp-api-v2.xml | 5 |
1 files changed, 2 insertions, 3 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 e1f138b1d..7ca4f081e 100644 --- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml +++ b/src/main/resources/clds/camel/rest/clamp-api-v2.xml @@ -1075,8 +1075,7 @@ </route> </get> <get uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}" - outType="org.onap.policy.clamp.loop.template.PolicyModel" - produces="application/json"> + outType="com.google.gson.JsonObject" produces="application/json"> <route> <removeHeaders pattern="*" excludePattern="policyModelType|policyModelVersion"/> @@ -1086,7 +1085,7 @@ <to uri="bean:org.onap.policy.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')"/> <to - uri="bean:org.onap.policy.clamp.loop.template.PolicyModelsService?method=getPolicyModelByType(${header.policyModelType},${header.policyModelVersion})"/> + uri="bean:org.onap.policy.clamp.loop.template.PolicyModelsService?method=getPolicyModelJson(${header.policyModelType},${header.policyModelVersion})"/> <to uri="bean:org.onap.policy.clamp.flow.log.FlowLogOperation?method=endLog()"/> <doCatch> |