Sha256: 6646f533b9d2e4a88ad3304a2f1f0b239ac3f030d655dcca59490aee5d5ff20f

Contents?: true

Size: 436 Bytes

Versions: 13

Compression:

Stored size: 436 Bytes

Contents

Server.api4 :clientcreate, :post, "/rc/#{Rhoconnect::API_VERSION}/clients", \
                      false, {:verb => :get, :url => ['/application/clientcreate', '/api/application/clientcreate']} do |params,user,server|
  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

Version data entries

13 entries across 13 versions & 1 rubygems

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