Current player API v2:
https://api.wynncraft.com/v2/player/{username}/stats
The {username} parameter, currently, is a case sensitive player name. I think it should be made case insensitive to allow for easier API usage (not having to find the correct player name case) as well as to fix the bug where a player who changed the case of his nickname can't be found in the API.
Example player with the case bug:
Old nickname: fLARE2b
New nickname: Flare2B
UUID: 8f055fa13a2344e6bfdfacfe1c965bcd
Searching for Flare2B in the API will return a "Bad Request" while searching for the old nickname would return the correct information.
In addition to insensitive name cases, I would also suggest to allow UUIDs to be used in the {username} parameter (both in the dashed and clear versions).
In the end, with this improvements the player API would return the same response for these calls:
Current player API v2:
https://api.wynncraft.com/v2/player/{username}/stats
The
{username}
parameter, currently, is a case sensitive player name. I think it should be made case insensitive to allow for easier API usage (not having to find the correct player name case) as well as to fix the bug where a player who changed the case of his nickname can't be found in the API.Example player with the case bug:
fLARE2b
Flare2B
8f055fa13a2344e6bfdfacfe1c965bcd
Searching for Flare2B in the API will return a "Bad Request" while searching for the old nickname would return the correct information.
In addition to insensitive name cases, I would also suggest to allow UUIDs to be used in the
{username}
parameter (both in the dashed and clear versions).In the end, with this improvements the player API would return the same response for these calls: