Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Array Parameters #8

Open
icirellik opened this issue Oct 5, 2015 · 3 comments
Open

Support Array Parameters #8

icirellik opened this issue Oct 5, 2015 · 3 comments

Comments

@icirellik
Copy link

I'm having trouble with url's that have arrays as parameters.

/users?userIds=1&userIds=2

Is this form supported / is there any intention of adding it in the future?

@rcs
Copy link
Owner

rcs commented Oct 8, 2015

It's currently a weird artifact that query parameters are supported here at all.

I'd love to give them some first class support. I haven't started doing the research yet, are there existing APIs you think win in query-param-parsing arena?

@Marak
Copy link

Marak commented Nov 2, 2015

@rcs -

Perhaps using qs library?

https://www.npmjs.com/package/qs

@CezaryDanielNowak
Copy link
Contributor

There is also another approach to arrays in address:
/users?userIds[]=1&userIds[]=2

Both should be supported, as both are widely used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants