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

Version Path
rhoconnect-3.4.5 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.4.4 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.4.3 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.4.2 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.3.6 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.3.5 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.3.4 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.3.3 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.3.2 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.3.1 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.3.1.beta4 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.3.1.beta3 lib/rhoconnect/api/user/create_user.rb
rhoconnect-3.3.1.beta2 lib/rhoconnect/api/user/create_user.rb