Diskussion:TurfAPI V2
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 pageRedigera
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)