简体   繁体   中英

using a two dimensional array in swagger php api

i want to get a get request http://localhost/api/catalog/product/list?filters[filter14][]=0 but in swagger it turns out only在此处输入图像描述

在此处输入图像描述

how to create two dimensional array input in swagger editor?

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 (eg as a JSON object or array), or replace the filters parameter with individual named filter parameters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM