You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ud...@apache.org on 2014/12/12 11:11:04 UTC

[02/50] stratos git commit: update tenant section with new REST API

 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/master
Commit: afbee0ac160c7c5964523db80982621452e1d2d0
Parents: 8a75e1e
Author: Dakshika Jayathilaka <si...@gmail.com>
Authored: Thu Dec 11 08:30:38 2014 +0530
Committer: Dakshika Jayathilaka <si...@gmail.com>
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);
     };