BatchRequestClient
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.