speedruncomorg / api

REST API Documentation for speedrun.com
346 stars 36 forks source link

[RFC 3986] Support duplicate queryparams keys (comma is a reserved character) #128

Open Avasam opened 3 years ago

Avasam commented 3 years ago

http://pretty-rfc.herokuapp.com/RFC3986#reserved ?embed=level,game.levels,game.variables and ?embed=level&embed=game.levels&embed=game.variables should be equivalent. (right now the second form won't work).

As an example, using requests in Python,

session.get("https://www.speedrun.com/api/v1/runs", params={"embed": ["level", "game.levels", "game.variables"]})

becomes https://www.speedrun.com/api/v1/runs?embed=level&embed=game.levels&embed=game.variables.