Sha256: c7a4e3d88f4506ad44cdd3266c6bf32fc3203a8c691a7c9d17d6c97665599cc7

Contents?: true

Size: 465 Bytes

Versions: 13

Compression:

Stored size: 465 Bytes

Contents

Server.api4 :delete_user, :delete, "/rc/#{Rhoconnect::API_VERSION}/users/:user_id", \
                true, {:verb => :post, :url => ['/api/delete_user', '/api/user/delete_user']} do |params,user|
  User.load(params[:user_id]).delete
  App.load(APP_NAME).users.delete(params[:user_id])
  params = {:app_id => APP_NAME,:user_id => params[:user_id]}
  App.load(APP_NAME).sources.each{ |source|
    Source.load(source, params).flash_store_data
  }
  "User deleted"
end

Version data entries

13 entries across 13 versions & 1 rubygems

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