News for hackers. Stuff that matters.
Re:Ask HN: Version numbers in a REST API by reynolds on Saturday July 17, 2010 @01:21PM (#1524199)
Unless I'm mistaken, this basically tells me that I should put the same code for v1+json and v2+json in the same controller method, rather than actually dispatching to separate controllers. I'm not sure how it's done in Rails, but /v1/ and /v2/ are dispatched separately since they are different namespaces.

Also, how do you separate users accessing your API if not with X-* HTTP headers with an API key? (I'm referencing that link you posted). Would you not consider Gowalla (and hundreds of others who use X-* API key headers) as being RESTful?

Re:Ask HN: Version numbers in a REST API by danielvlopes on Saturday July 17, 2010 @07:30PM (#1524862)
In rails3 we could use constraints to limit requests to header x to be routed to controller x and vice versa for controller y. I dont tested it yet to be sure but I think its totally possible.