update tenant section with new REST API
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/afbee0ac Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/afbee0ac Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/afbee0ac Branch: refs/heads/4.1.0-test Commit: afbee0ac160c7c5964523db80982621452e1d2d0 Parents: 8a75e1e Author: Dakshika Jayathilaka <[email protected]> Authored: Thu Dec 11 08:30:38 2014 +0530 Committer: Dakshika Jayathilaka <[email protected]> Committed: Thu Dec 11 08:30:38 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/afbee0ac/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 60abd4b..2e6913a 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 @@ -24,7 +24,7 @@ RESTCalls = new function(){ var log = new Log('RESTCalls'); this.getTenants = function(){ - return this.sendReceive("GET","/tenant/list",{}); + return this.sendReceive("GET","/tenants",{}); }; this.deployCartridgeDefinition = function(cartridgeDefinition){ @@ -76,7 +76,7 @@ RESTCalls = new function(){ }; this.addTenant = function(tenantInfoBean){ - return this.sendReceive("POST","/tenant",tenantInfoBean); + return this.sendReceive("POST","/tenants",tenantInfoBean); };
