JSON查询参数不起作用 - RESTful API

时间:2016-08-30 13:40:41

标签: json

我有以下json文件:

{
  "local_alias": [
    {
      "8188": {
        "result": {
          "status": "success",
          "location": "Europe",
          "primary_overflow_location": "Europe",
          "secondary_overflow_location": "USA"
        }
      },
      "8988": {
        "result": {
          "status": "success",
          "location": "USA",
          "primary_overflow_location": "USA",
          "secondary_overflow_location": "Europe"
        }
      }
    }
  ]
}

我可以浏览资源,但是当我向它添加一个查询参数时,它会返回所有内容。

$resource/?local_alias=8988

如何获取它以便正确返回我的搜索?

0 个答案:

没有答案
相关问题