Api call https://api.turfgame.com/unstable/zones return 3 zones although I've requested only one

This issue was originally reported as related to Critical Turf Server or API Issue.
Status
resolved
Resolution
fixed
Reported by
praktikus
Date submitted
2022-03-18 11:09
Issue ID
#12535

Steps to reproduce

Make a post call of api.turfgame.com/unstable/z... with payload [{"name": "T-Zinken"}]

Description

You will then get a response with following json [{ "dateCreated": "2016-06-05T00:46:55+0000", "dateLastTaken": "2022-03-18T08:41:54+0000", "latitude": 59.317774, "currentOwner": { "name": "Blaumeise", "id": 201033 }, "name": "T-Zinken", "id": 78439, "totalTakeovers": 12227, "region": { "area": { "name": "Stockholms kommun", "id": 1828 }, "country": "se", "name": "Stockholm", "id": 141 }, "pointsPerHour": 8, "longitude": 18.050113, "takeoverPoints": 80 }, { "dateCreated": "2015-08-08T16:53:00+0000", "dateLastTaken": "2022-03-16T13:47:44+0000", "latitude": 55.683526, "currentOwner": { "name": "Bielpe", "id": 236692 }, "name": "T-zon", "id": 56027, "totalTakeovers": 413, "region": { "area": { "name": "Københavns Kommune", "id": 2102 }, "country": "dk", "name": "Hovedstaden", "id": 172 }, "type": { "name": "Winner Zone", "id": 6 }, "pointsPerHour": 1, "longitude": 12.578737, "takeoverPoints": 185 }, { "dateCreated": "2021-03-13T12:40:34+0000", "dateLastTaken": "2022-03-10T12:29:17+0000", "latitude": 54.092459, "currentOwner": { "name": "CloughamanSROC", "id": 297493 }, "name": "T-time", "id": 392628, "totalTakeovers": 64, "region": { "area": { "name": "Lancashire", "id": 2805 }, "country": "gb", "name": "North West England", "id": 201 }, "pointsPerHour": 1, "longitude": -2.814518, "takeoverPoints": 185 }] As you can see you it didn't just return the zone that I requested ("T-Zinken") but also two bonus zones "T-zon" and "T-time" The expected behaviour would in my opinion be that only 1 zone was returned

Attachments

No attachments.

Related issues

No related issues.

Responses

DIProgan
  • Also affected
  • Thinks it is important

I also get this behavior

Add comment or attachment

Log in to add a comment.