batch_api
batch_api copied to clipboard
A Facebook-style, RESTful Batch API
I cant see examples.
- Params passed in GET operation are now available via Rack::Request params method. - Uses URI.parse instead of url.split("?") to parse the op url
**Changelog:** - Replace MultiJson.dump method with to_json method **Error:** - `NameError (uninitialized constant BatchApi::ErrorWrapper::MultiJson)`
I am using batch_api with a Grape API in a Rails app. I found that all batch requests processed normally except for those using query string parameters. For example, this...
Parallel
Use celluloid actor to implement parallel batch processing
For example, I tried this request by reference to https://developers.facebook.com/docs/graph-api/making-multiple-requests/ _curl -F 'ops=[{"method":"GET", "url":"/api/tags"},{"method":"GET", "url":"/api/notes"}]' -F 'sequential=1' http://localhost:3000/batch_ Then, I got this error "Only 50 operations can be submitted at...
A naive semiparallel processor. It chunks consecutive GET requests and executes each chunk in a map of threads. To use it, simply pass `sequential: false` in the request parameters.
This fix was described by @kissrobber on this issue: https://github.com/arsduo/batch_api/issues/25 I applied the patch and it fixed these errors described by this issue for me as well.
PR: https://github.com/arsduo/batch_api/pull/31 piggy back on Celluloid reactor.
What about Rails 4 and Ruby 2.1. When i'am implement batch_api and rails 4 app. PUT method in ops[] response 404, GET and POST method - ok. my query: {"ops":...