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