Home > database >  using a two dimensional array in swagger php api
using a two dimensional array in swagger php api

Time:11-16

i want to get a get request http://localhost/api/catalog/product/list?filters[filter14][]=0 but in swagger it turns out only enter image description here

enter image description here

how to create two dimensional array input in swagger editor?

CodePudding user response:

OpenAPI 3.x does not support nested arrays and nested objects in query strings. You'll need to either pass those filters in the request body (e.g. as a JSON object or array), or replace the filters parameter with individual named filter parameters.

CodePudding user response:

There isn't an ideal solution but this might help: https://github.com/zircote/swagger-php/issues/1327

  • Related