Open
Description
Hi,
Could you please tell me if there is a way to accept the array of entities in the params with content/type application json
code
params do optional :requests, type: API::V1::Entities::Body, desc: '...' end
But I would like to have array of requests as below
{ "requests": [ { "method": "string", "path": "string" }, { "method": "string", "path": "string" } ] }
Also tried using param_type: 'body' and is_array: true
params do optional :requests, type: API::V1::Entities::Body, documentation: { is_array: true, param_type: 'body'}, desc: '...' end
It ignores the outer hash when sending the application/json