batch_request_api icon indicating copy to clipboard operation
batch_request_api copied to clipboard

How can I get the batch_sequential values when I am in the controller ?

Open mongeta opened this issue 6 years ago • 0 comments

Hi,

How can I get the batch values when I am in the controller ?

I am using batch_sequential, I can see the payload is correct using request.body.read.

After inspecting the source code of the gem, I have no clue how to obtain the correct payload.

I am using the ember addon

initializer: Rails.application.config do |config| config.batch_sequential_paths = ['batch_sequential'] # ['/api/v1/batch_sequential'] config.batch_parallel_paths = nil # ['/api/v1/batch_parallel'] end

controller: class BatchSequentialController < ApplicationController def create puts JSON.parse(request.body.read.to_json) byebug end

mongeta avatar Mar 21 '18 09:03 mongeta