Diskussion:TurfAPI V2

Version från den 12 februari 2013 kl. 14.13 av AJ (Diskussion | bidrag) (Issue regarding missing "id" reported: nytt avsnitt)
(skillnad) ← Äldre version | Nuvarande version (skillnad) | Nyare version → (skillnad)

Fact:[redigera]

http://api.turfgame.com/v2/zones returns all zones from the game.

Problem:[redigera]

Returns all zones WITHOUT "id" attribute for each zone. This makes it impossible to cross-reference against http://api.turfgame.com/v2/zones/id:[id of zone] without iterating through every zone by "name" attribute to retrieve the "id" attribute.

Proposal to solution:[redigera]

Add attribute "id" to the response when calling http://api.turfgame.com/[version number]/zones This proposal also makes it easier for developers when updating their local cache and reduces the number of requests and data size transferred from TurfAPI.

Workaround:[redigera]

Developer can create a local cache of the zones by calling http://api.turfgame.com/v2/zones Iterate through every zone using http://api.turfgame.com/v2/zones/id:[id of zone] and cache the "id". Sparsely check for new zones and update local cache.


--GuteLappen 26 januari 2013 kl. 09.43 (UTC)

Regarding this discussion page[redigera]

Please note that issues regarding the API should be reported in the issue tracker, and that suggestions, feature requests and discussion concerning the API should go to the appropriate section of the forum.

--TBIT 27 januari 2013 kl. 21.38 (UTC)

Issue regarding missing "id" reported[redigera]

http://issues.turfgame.com/view/115