From b0937c098cb583c2101c7180f36c8ad92e1f83b3 Mon Sep 17 00:00:00 2001 From: sebdet Date: Tue, 23 Feb 2021 14:51:54 +0100 Subject: Add new delete policy endpoint Refactor the camel code so that the policy delete can be called "by loop" related flows and "by policy only" related flows. A new endpoint for policy deletion has been added as well. This one will be called by the UI Issue-ID: POLICY-2927 Signed-off-by: sebdet Change-Id: I3c4bd2e22200788360575aa61a0122b7ed4e608d (cherry picked from commit f12066418c402d3a7fe34667a9fc87295a347b8a) --- .../resources/clds/camel/rest/clamp-api-v2.xml | 58 ++++++++++++++++++++-- 1 file changed, 53 insertions(+), 5 deletions(-) (limited to 'src/main/resources/clds/camel/rest') 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 f924a8a24..01ad8a8a3 100644 --- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml +++ b/src/main/resources/clds/camel/rest/clamp-api-v2.xml @@ -499,7 +499,7 @@ false - + false - + @@ -584,7 +584,7 @@ false - + @@ -599,7 +599,7 @@ false - + @@ -737,7 +737,7 @@ false - + + + + + + + + + ${header.policyModelType} + + + ${header.policyModelVersion} + + + ${header.policyName} + + + ${header.policyVersion} + + + false + + + + + + java.lang.Exception + + true + + + + + 500 + + + DELETE Policy FAILED + + + + + +