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

Branch: refs/heads/4.1.0-test
Commit: 98b5ed5a3b28f19839843c3f17c0080f6c7def89
Parents: 8220c67
Author: Dakshika Jayathilaka <[email protected]>
Authored: Wed Dec 10 17:26:48 2014 +0530
Committer: Dakshika Jayathilaka <[email protected]>
Committed: Wed Dec 10 17:26:48 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/98b5ed5a/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 9b3fca4..4481167 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
@@ -77,7 +77,7 @@ RESTCalls = new function(){
 
 
     this.addUser = function(userInfoBean){
-        return this.sendReceive("POST","/user", userInfoBean);
+        return this.sendReceive("POST","/users", userInfoBean);
     };
 
     this.syncRepo = function(alias){
@@ -154,7 +154,7 @@ RESTCalls = new function(){
         return 
this.sendReceive("DELETE","/cartridge/definition/"+cartridgeType,{});
     };
     this.getUserList = function(){
-        return this.sendReceive("GET", "/user/list", {});
+        return this.sendReceive("GET", "/users", {});
     }
     this.getConfigStatus = function(){
         var configStatus = {};

Reply via email to