[API Suggestion] Separate Item APIs
If everything goes smoothly with GW2.NET you only have to download it once every patch and then you can access and filter it as you like.
I personally don’t see a reason to change the api for that, in my opinion this is a job for the clients to do.
A reason why there is only one endnote might have something with the /v1/items node which dumps all the items ids in a big list.
If everything goes smoothly with GW2.NET you only have to download it once every patch and then you can access and filter it as you like.
I personally don’t see a reason to change the api for that, in my opinion this is a job for the clients to do.
A reason why there is only one endnote might have something with the /v1/items node which dumps all the items ids in a big list.
I don’t develop on Windows.
Anyway, your last sentence validates my point. The API design right now forces client-side joins. In a perfect world the API would be better designed around useful resource types. In the simple case, this would be things like weapons, armor, recipes, etc., each having their own API endpoints that could be filtered separately. I’m just talking about basic discoverable API principles.
At the VERY least, the items API should work like:
- items.json returns a list of say 50 or 100 item records, with inline pagination metadata. There are lots of formats out there to do this. One is HAL-JSON, but there are many more.
- items.json?item_id=x would work as item_details.json?item_id=x works now
- Filter on attributes. For example, items.json?type=armor would get all the armor. You get the picture.
I’m positive the limiting factor at ANet for improving their APIs engineering bandwidth, not talent or whatever. This is just constructive criticism.
I prefer more functionality (OAuth,TP,megaserver,character,etc..) than have a better organization of the same informations.
I, as a developer, can filter or reorganize data like I want, but I cannot develop a new TP API.
A better distinction could be useful for some items (for example satchel are the same item type than loot bag, it could be usefull to separate in two type of item), but it’s not something critical, it should not reduce ArenaNet development effort on other critical API features!