Closed sliekens closed 9 years ago
Seems reasonable enough to me. I'll make the change unless there's dissent, not sure when it'll go out though.
Thanks! By the way, I think the same issue applies to pagination. Can't check right now, because our company firewall blocks your domain name.
https://api.guildwars2.com/v2/items?page=
This is written, pending code review from @lye. Both ?ids=
and ?page=
return a HTTP 400
.
Sweet :)
What about id=
?
Good catch! ?id=
returns HTTP 400
as well. @lye signed off, so checking this into dev.
This is now live, as of this morning.
I think that bulk expanded endpoints are broken in the sense that an empty
ids
parameter is treated as if there was no query string at all.An example...
Is treated the same as...
When I visit that first URL, I would expect one of two things:
{"text":"no ids provided"}
[]
Instead, the API returns an array of numeric values, when my program is expecting an array of objects.