Once upon a time if I recall correctly, the club members endpoint returned URLs (URIs?) for each club member, but in the interest of reducing volume that was changed and only the member names are returned, and client code must construct a URL if the player profile is wanted.
A similar change was not made in the club profile endpoint, which has admin names but provides the full URL instead.
From the members endpoint:
"username":"stoker68",
From the club profile admin's list:
"https://api.chess.com/pub/player/stoker68"
I appreciate that it would be a breaking change to synchronise these but frankly I would like them to be the same. This came up when I wanted to exclude administrators (checking for overlap in team memberships which could cause multi-payer issues). I wish to exclude administrators because:
There is some overlap to help the smaller teams out
One admin (who probably won't read this) would be reluctant to leave (he does have a point about being a "disaster recovery" sort of backup)
I can trust the admins not to play for multiple teams or else it's on their own heads anyway. I can't trust that the players participating in these competitions either know the rules or care about them; they want to play chess, and know most but not all of the laws of chess and that's good enough for them. It's a hobby after all for all but a very few of chess.com's members.
I grant this is easy enough to deal with and I won't mind too much if it's left as-is, but it is an inconsistency and as much of a nuisance as it might be to change it now, it will only be harder later.
I've seen in source code a 20 year old comment saying, "After X is implemented, this code can be removed". Uh-huh. Right.
Hi,
Once upon a time if I recall correctly, the club members endpoint returned URLs (URIs?) for each club member, but in the interest of reducing volume that was changed and only the member names are returned, and client code must construct a URL if the player profile is wanted.
A similar change was not made in the club profile endpoint, which has admin names but provides the full URL instead.
From the members endpoint:
From the club profile admin's list:
I appreciate that it would be a breaking change to synchronise these but frankly I would like them to be the same. This came up when I wanted to exclude administrators (checking for overlap in team memberships which could cause multi-payer issues). I wish to exclude administrators because:
I grant this is easy enough to deal with and I won't mind too much if it's left as-is, but it is an inconsistency and as much of a nuisance as it might be to change it now, it will only be harder later.
I've seen in source code a 20 year old comment saying, "After X is implemented, this code can be removed". Uh-huh. Right.
Cheers!