Sha256: 9352d15909792d09d1bc5ec73701edb117b5e3aca80b7df66a74a686533cd695
Contents?: true
Size: 600 Bytes
Versions: 13
Compression:
Stored size: 600 Bytes
Contents
Server.api4 :clientregister, :post, "/rc/#{Rhoconnect::API_VERSION}/clients/:client_id/register", \ false, {:verb => :post, :url => ['/application/clientregister', '/api/application/clientregister'] } do |params,user,server| current_client = server.current_client if current_client.nil? and server.current_user and server.current_app fields = {:user_id => server.current_user.id} fields[:id] = params[:client_id].to_s fields[:app_id] = server.current_app.id current_client = Client.create(fields) end current_client.update_fields(params) server.status 200 end
Version data entries
13 entries across 13 versions & 1 rubygems