ezkl / batch_request_client

Ruby Client to make Batch Requests to batch_request_api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  BatchRequestApi::Client.create(payload, url)

Arguments

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

Example:

  BatchRequestApi::Client.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

License:Apache License 2.0


Languages

Language:Ruby 100.0%