add deployemnt to REST
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/8d5c679e Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/8d5c679e Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/8d5c679e Branch: refs/heads/master Commit: 8d5c679e9bdb1c4d0bb5beba25a19b42f84b89dd Parents: 3da5531 Author: Dakshika Jayathilaka <[email protected]> Authored: Thu Dec 18 10:57:12 2014 +0530 Committer: Udara Liyanage <[email protected]> Committed: Thu Dec 18 12:07:00 2014 +0530 ---------------------------------------------------------------------- .../console/controllers/rest/rest_calls.jag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/8d5c679e/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag index 258c105..09232fb 100644 --- a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag +++ b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag @@ -51,8 +51,8 @@ RESTCalls = new function(){ return this.send("POST","/tenant/availability/" + tenantDomain,{}); }; - this.deployDeploymentPolicyDefinition = function(policyDefinition){ - return this.send("POST","/applicationDeployments",policyDefinition); + this.deployDeploymentPolicyDefinition = function(applicationID, policyDefinition){ + return this.send("POST","/application/"+applicationID+"/deploy",policyDefinition); }; this.deployAutoscalePolicyDefinition = function(policyDefinition){
