Sha256: 96c89d91465b8dd5daa233f8376ffe95c3585b50b17452f956fe72be2d8d1f21

Contents?: true

Size: 323 Bytes

Versions: 21

Compression:

Stored size: 323 Bytes

Contents

Server.api :clientcreate, :application, :get do |params,user,server|
  server.catch_all do 
    server.content_type :json
    client = Client.create(:user_id => server.current_user.id,:app_id => server.current_app.id)
    client.update_fields(params)
    { "client" => { "client_id" =>  client.id.to_s } }.to_json
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rhoconnect-3.2.1 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.2.0 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.2.0.beta5 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.2.0.beta4 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.2.0.beta3 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.2.0.beta2 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.2.0.beta1 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.1.2 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.1.1 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.1.0 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.1.0.beta2 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.1.0.beta1 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.0.6 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.0.5 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.0.4 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.0.3 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.0.2 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.0.1 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.0.0 lib/rhoconnect/api/application/clientcreate.rb
rhoconnect-3.0.0.rc1 lib/rhoconnect/api/application/clientcreate.rb