Ruby Client to create batch payload for use with Batch Request API Middleware
Add this line to your application's Gemfile:
gem 'batch_request_client'
Or install it yourself as:
$ gem install batch_request_client
BatchRequestClient.create(payload, url)
- payload - Array of models.
- url - Complete route.
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.
Update and Delete is still TODO, since we focussed on the Ember Addon that handles update and delete from UI.
If you would like to contribute, you can fork the project, edit, and make a pull request.