简体   繁体   English

在 swagger php api 中使用二维数组

[英]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我想得到一个获取请求 http://localhost/api/catalog/product/list?filters[filter14][]=0 但在 swagger 结果只有在此处输入图像描述

在此处输入图像描述

how to create two dimensional array input in swagger editor?如何在 swagger 编辑器中创建二维数组输入?

OpenAPI 3.x does not support nested arrays and nested objects in query strings. OpenAPI 3.x不支持查询字符串中的嵌套 arrays 和嵌套对象。 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.您需要在请求正文中传递这些过滤器(例如作为 JSON object 或数组),或者将filters参数替换为单独的命名过滤器参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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