Sha256: b2276ac300315f5c4dc035f1cf835bf8dd7dcf30179318ce54e5a168630c72bc
Contents?: true
Size: 664 Bytes
Versions: 13
Compression:
Stored size: 664 Bytes
Contents
Server.api4 :fast_insert, :post, "/app/#{Rhoconnect::API_VERSION}/:source_id/fast_insert", true, {:verb => :post, :url => ['/api/fast_insert', '/api/source/fast_insert']} do |params,user| 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 source_sync.fast_insert(params[:data], timeout,raise_on_expire) 'done' end
Version data entries
13 entries across 13 versions & 1 rubygems