gw2-api / issues

14 stars 0 forks source link

Old skills and specializations are still listed under newer schema versions #51

Open sliekens opened 1 year ago

sliekens commented 1 year ago

Current Behavior

Some character endpoints return a 404 Not Found if you specify v=latest.

https://api.guildwars2.com/v2/characters/REALNAME/skills?access_token=REALTOKEN&v=latest
https://api.guildwars2.com/v2/characters/REALNAME/specializations?access_token=REALTOKEN&v=latest

Update: this is the intended behavior because a newer buildtabs endpoint was added that replaces the skills and specializations endpoints.

Expected Behavior

Remove the deprecated endpoints from /v2.json?v=2019-12-19 and newer.

Steps To Reproduce

No response

Happening since

No response

Anything else?

No response

TheMrMilchmann commented 1 year ago

Not a bug. The endpoints were removed in schema version 2019-12-19T00:00:00.000Z. They have been replaced with /v2/characters/:id/buildtabs (etc.) to properly support multiple builds.

Add code and skills_by_palette to /v2/professions. Add code to /v2/legends. Add build_storage_slots to /v2/account. Add build_tabs_unlocked, active_build_tab, build_tabs, equipment_tabs_unlocked, active_equipment_tab and equipment_tabs to /v2/characters/:id. Add equipment[i].location and equipment[i].tabs to /v2/characters/:id. Remove skills and specializations from /v2/characters/:id.

I strongly suggest migrating to these endpoints instead. Otherwise, it is also possible to stick to schema version 2019-05-22T00:00:00.000Z. However, beware that the returned information might no longer be what you would expect.

sliekens commented 1 year ago

I updated the title and description to indicate this is by design and changed the expected fix to removing the endpoints from v2.json.