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/f9c8627f
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/f9c8627f
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/f9c8627f

Branch: refs/heads/4.1.0-test
Commit: f9c8627f461be4fa7d4a5e237d2b12541e264dde
Parents: 52e2bee
Author: Dakshika Jayathilaka <[email protected]>
Authored: Thu Dec 18 10:57:12 2014 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Thu Dec 18 11:28:07 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/f9c8627f/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){

Reply via email to