batch_request_api
batch_request_api copied to clipboard
How can I get the batch_sequential values when I am in the controller ?
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