组通过键返回数组的api平台过滤器

时间:2020-02-12 15:13:36

标签: api-platform.com

我正在尝试过滤在api平台中返回数组的组的值:

/ ** @Groups(“ examplegroup”)** / 公共函数getApiValue():array;

示例输出:

[“一个”:“ text1”,“两个”:“ text2”,“三个”,“ text3”]

我可以这样配置一个过滤器: ?apiValue = one

哪个将返回“ text1”?

0 个答案:

没有答案