News for hackers. Stuff that matters.
Re:How Not to write a "REST" API by SoftwareMaven on Wednesday February 01, 2012 @11:55AM (#3538770)
I agree with most of what you said, but mapping CRUD directly onto the verbs is perhaps a little simplistic. See http://jcalcote.wordpress.com/2008/10/16/put-or-post-the-res... for a discussion on it. The very short version is that idempotency is important, POST must be used for non-idempotent updates, and there is no reason PUT can't be used to create if you know the ID of the resource.
Re:How Not to write a "REST" API by poutine on Wednesday February 01, 2012 @12:04PM (#3538823)
HTTP PATCH was created due to this problem, though I've not run across an API using it yet.

http://greenbytes.de/tech/webdav/draft-dusseault-http-patch-...

Re:How Not to write a "REST" API by SoftwareMaven on Wednesday February 01, 2012 @12:24PM (#3538915)
The discussion here around the article I linked was my first introduction to PATCH. I would really like to see it implemented in Pyramid so my site can take advantage of it.