Passing array in GET for a REST call

Viewed 171294

I have a url to fetch appointments for a user like this:

/user/:userId/appointments

How should the url look like if I want to get appointments for multiple users?

should it be:

/appointments?users=1d1,1d2..

Thanks, Chris.

6 Answers

This worked for me.

/users?ids[]=id1&ids[]=id2
Related