arenanet / api-cdi

Collaborative Development Initiative for Public APIs
251 stars 41 forks source link

Add selected WvW guild to /v2/account #689

Open TaylanUB opened 3 weeks ago

TaylanUB commented 3 weeks ago

The /v2/account endpoint should be expanded to specify the account's WvW guild, in line with the recent restructuring.

Example new output, with fake JSON comments to clarify:

{
  "id": "ACCOUNT_UUID",
  "name": "Example.1234",
  "age": 12345678,
  "world": 1234, /* Obsolete but kept for backwards compatibility */
  "guilds": [
    "GUILD_UUID_1",
    "GUILD_UUID_2",
    "GUILD_UUID_3"
  ],
  "wvw_guild": "GUILD_UUID_2", /* New. Always one of the UUIDs in the guilds array. */
  "created": "2020-01-01T00:00:00Z",
  "access": [
    "GuildWars2",
    "HeartOfThorns",
    "PlayForFree",
    "PathOfFire",
    "EndOfDragons"
  ],
  "commander": true
}
ChalyFlavour commented 3 weeks ago

we really need this since 2023/05, so +1 from me.

see also issue 58 in https://github.com/gw2-api/issues/issues/58#issue-1734465038

After having a longer discussion, we also created an endpoint issue for the current matchup guild list at endpoint /v2/wvw/matches/guilds