News for hackers. Stuff that matters.
Re:If you have REST, why use XML-RPC? by tjpick on Thursday January 14, 2010 @02:51PM (#1053434)
> Tricks like appending ".jpg" to the url seem a little hack-ish to me. That feels like a parameter.

that feels like a file type. If there is more than one representation available then it's a parameter, indeed, but the standard place to put that is on the end of the filename.

Surely it's clear that: employees is the collection; employees/110 is a specific employee; employees/110.jpg is the jpeg representation of said employee.

Re:If you have REST, why use XML-RPC? by akronim on Thursday January 14, 2010 @04:20PM (#1053622)
Shouldn't you be using HTTP Accept headers to specify the format(s) you want? (rather than file extensions in the URL)
Re:If you have REST, why use XML-RPC? by tjpick on Thursday January 14, 2010 @05:34PM (#1053745)
the spec says they can be used for that and you could easily have a server that checks the HTTP Accept if there is no extension. Most likely you need to hyperlink to many of the resources so you're going to need the extension anyway (eg /employees/110.html has an img src="employees/110.jpg")

If it's for a programmatic client, not a browser, the HTTP Accept would probably be sufficient.