Server.api4 :create_user, :post, "/rc/#{Rhoconnect::API_VERSION}/users", true, {:verb => :post, :url => ['/api/create_user', '/api/user/create_user']} do |params,user| app = App.load(APP_NAME) u = User.create({:login => params[:attributes]['login']}) u.password = params[:attributes]['password'] app.users << u.login "User created" end