News for hackers. Stuff that matters.
Re:Dudes, this is so not REST by stevelosh on Tuesday March 15, 2011 @03:58PM (#2329109)
With the first format you can use the same name more than once:

    /rdio/api/1/artist/1/tracks/2/artist/1
I'm pretty sure the ordering of query parameters isn't a part of the HTTP spec.

I just did a quick check and Django, for example, will just take the second of any duplicated GET params.

Re:Dudes, this is so not REST by regularfry on Tuesday March 15, 2011 @04:52PM (#2329332)
Ordering of query parameters is a W3C recommendation:

  http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type
If Django's ignoring repeated form fields, it's Doing It Wrong.
Re:Dudes, this is so not REST by stevelosh on Tuesday March 15, 2011 @05:08PM (#2329401)
You're right about the ordering, so I guess Django is actually doing it wrong.
Re:Dudes, this is so not REST by ramen on Tuesday March 15, 2011 @05:17PM (#2329430)
You have to use the "getlist" method instead of "get" if you are expecting multiple values.