fix issues on Application adding with REST API changes
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/5c5ba142 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/5c5ba142 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/5c5ba142 Branch: refs/heads/4.1.0-test Commit: 5c5ba142f5ae068694864779fd61211c9c5c5771 Parents: 97295ac Author: Dakshika Jayathilaka <[email protected]> Authored: Thu Dec 11 11:17:22 2014 +0530 Committer: Dakshika Jayathilaka <[email protected]> Committed: Thu Dec 11 11:17:22 2014 +0530 ---------------------------------------------------------------------- .../console/applications_form.jag | 2 +- .../console/controllers/rest/rest_calls.jag | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/5c5ba142/components/org.apache.stratos.manager.console/console/applications_form.jag ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/applications_form.jag b/components/org.apache.stratos.manager.console/console/applications_form.jag index 6402620..c4f5b6a 100644 --- a/components/org.apache.stratos.manager.console/console/applications_form.jag +++ b/components/org.apache.stratos.manager.console/console/applications_form.jag @@ -86,7 +86,7 @@ switch (formtype) { } break; case "deployments": - list_data = util.RESTCalls.getPolicyDeployment(); + list_data = util.RESTCalls.getPolicyDeployment(); //TODO fix with correct JSON if(list_data == null) { list_data = null; }else{ http://git-wip-us.apache.org/repos/asf/stratos/blob/5c5ba142/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 4fac98f..dab4509 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 @@ -68,7 +68,7 @@ RESTCalls = new function(){ }; this.deployApplicationDefinition = function(applicationDefinition){ - return this.send("POST","/application/definition", applicationDefinition); + return this.send("POST","/applications", applicationDefinition); }; this.subscribeToCartridge = function(cartridgeBeanInfo){ @@ -131,11 +131,11 @@ RESTCalls = new function(){ }; this.getApplications = function(){ - return this.sendReceive("GET","/application",{}); + return this.sendReceive("GET","/applications",{}); }; this.getApplicationTopology = function(appId){ - return this.sendReceive("GET","/application/" + appId,{}); + return this.sendReceive("GET","/applications/" + appId,{}); }; this.getClusterInfo = function(clusterId){
