Skip to content

Netflix/batch_request_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BatchRequestClient

NetflixOSS Lifecycle

Ruby Client to create batch payload for use with Batch Request API Middleware

Installation

Add this line to your application's Gemfile:

gem 'batch_request_client'

Or install it yourself as:

$ gem install batch_request_client

Usage

  BatchRequestClient.create(payload, url)

Arguments

  • payload - Array of models.
  • url - Complete route.

Example:

  BatchRequestClient.create(payload, 'http://localhost:3000/talents', :parallel)

Default is sequential operation, if you want parallel, you can pass :parallel in the list of arguments.

Coming Soon

Update and Delete is still TODO, since we focussed on the Ember Addon that handles update and delete from UI.

Contributing

If you would like to contribute, you can fork the project, edit, and make a pull request.

About

Ruby Client to make Batch Requests to batch_request_api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages