Sha256: 20226fcfde4e47a840cb95122f980b9abf8dc793dfef2aece04cd0abf474bc90

Contents?: true

Size: 832 Bytes

Versions: 1

Compression:

Stored size: 832 Bytes

Contents

# Server.resource_api '', "/app/#{Rhoconnect::API_VERSION}/:source_id/push_objects", :post, \
#         {:admin_route => true, :login_required => false, :deprecated_route => {:verb => :post, :url => ['/api/push_objects', '/api/source/push_objects']}} do
#   source = Source.load(params[:source_id],{:app_id=>APP_NAME,:user_id=>params[:user_id]})
#   # if source does not exist create one for dynamic adapter
#   source = Source.create({:name => params[:source_id]},{:app_id => APP_NAME,:user_id=>params[:user_id]}) unless source
#   source_sync = SourceSync.new(source)
#   timeout = params[:timeout] || 10
#   raise_on_expire = params[:raise_on_expire] || false
#   rebuild_md = params[:rebuild_md].nil? ? true : params[:rebuild_md]
#   source_sync.push_objects(params[:objects],timeout,raise_on_expire,rebuild_md)
#   'done'
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhoconnect-4.0.0.beta.10 lib/rhoconnect/api/app/push_objects.rb