Sha256: 13729023faa0abb7ee1701ba68180e9513a30a12747a8c736bb8c3012e785cd9

Contents?: true

Size: 624 Bytes

Versions: 1

Compression:

Stored size: 624 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

1 entries across 1 versions & 1 rubygems

Version Path
rhoconnect-4.0.0.beta.10 lib/rhoconnect/api/client/register.rb