Sha256: dec2cb7fc60ac4ed2b2a0383cd442a6bc58abb72e58875f0c7532f7f26bdbf91

Contents?: true

Size: 751 Bytes

Versions: 13

Compression:

Stored size: 751 Bytes

Contents

Server.api4 :push_deletes, :post, "/app/#{Rhoconnect::API_VERSION}/:source_id/push_deletes", true, {:verb => :post, :url => ['/api/push_deletes', '/api/source/push_deletes']} 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
  rebuild_md = params[:rebuild_md].nil? ? true : params[:rebuild_md]
  source_sync.push_deletes(params[:objects],timeout,raise_on_expire,rebuild_md)
  'done'
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.4.4 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.4.3 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.4.2 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.3.6 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.3.5 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.3.4 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.3.3 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.3.2 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.3.1 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.3.1.beta4 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.3.1.beta3 lib/rhoconnect/api/app/push_deletes.rb
rhoconnect-3.3.1.beta2 lib/rhoconnect/api/app/push_deletes.rb