You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/02/17 06:44:37 UTC
[5/5] stratos git commit: removeDeploymentPolicy API method updated
removeDeploymentPolicy API method updated
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/02f882bb
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/02f882bb
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/02f882bb
Branch: refs/heads/4.1.0-beta-deployment-policy-fix
Commit: 02f882bb943891bed630b265bcb0600a53e2b9d5
Parents: 51520a6
Author: Dinithi <di...@wso2.com>
Authored: Mon Feb 16 15:41:46 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Tue Feb 17 11:13:31 2015 +0530
----------------------------------------------------------------------
.../org/apache/stratos/rest/endpoint/api/StratosApiV41.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/02f882bb/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
index 37c3f6a..057b390 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
@@ -219,11 +219,11 @@ public class StratosApiV41 extends AbstractApi {
* @throws RestAPIException the rest api exception
*/
@DELETE
- @Path("/deploymentPolicies")
+ @Path("/deploymentPolicies/{depolymentPolicyID}")
@Produces("application/json")
@Consumes("application/json")
- @AuthorizationAction("/permission/admin/manage/addCartridge")
- public Response removeDeploymentPolicy(String deploymentPolicyID)
+ @AuthorizationAction("/permission/admin/manage/removeDeploymentPolicy")
+ public Response removeDeploymentPolicy(@PathParam("depolymentPolicyID") String deploymentPolicyID)
throws RestAPIException {
StratosApiV41Utils.removeDeploymentPolicy(deploymentPolicyID);