Sha256: 17d9d754ba8d1118f04fb022ba61341bba2ec84631e5ffc39a44da20cb80e4e3
Contents?: true
Size: 346 Bytes
Versions: 13
Compression:
Stored size: 346 Bytes
Contents
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
Version data entries
13 entries across 13 versions & 1 rubygems