# Server.resource_api '', "/app/#{Rhoconnect::API_VERSION}/:source_id/fast_delete", :post, \ # {:admin_route => true, :login_required => false, :deprecated_route => {:verb => :post, :url => ['/api/fast_delete', '/api/source/fast_delete']}} 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 # source_sync.fast_delete(params[:data], timeout,raise_on_expire) # 'done' # end