获取请求返回的结果超过请求的

时间:2019-12-05 17:09:36

标签: rest http get

我的请求写成

http://localhost:8000/api/wells/?page=1&pageSize=10&ordering=name&zone=2

但回报为

[
 {
        "id": 4823,
        "name": "Baba Looey C2-19-30 301H",
        "pad": 848,
        "lateralLengthGroup": 21,
        "declineCurveGroup": 337,
        "activityRequirementGroup": 203,
        "startTime": null,
        "generwellId": 5320,
        "zone": 9,
        "tankBattery": null,
        "surfaceHoleLocation": "SRID=4326;POINT (-103.083382 31.21428)"
    },
    {
        "id": 4824,
        "name": "Baba Looey C2-19-30 502H",
        "pad": 848,
        "lateralLengthGroup": 21,
        "declineCurveGroup": 338,
        "activityRequirementGroup": 204,
        "startTime": null,
        "generwellId": 5321,
        "zone": 5,
        "tankBattery": null,
        "surfaceHoleLocation": "SRID=4326;POINT (-103.083381 31.21436)"
    },
]

如何编写请求,以便响应中只有等于2的区域

0 个答案:

没有答案