REST in six lines?
Duncan Cragg makes REST easy:
Here's how easy it is to be RESTful - "Level 3" - in just six lines:
GET /resource/1 HTTP/1.1 Host: restful.com HTTP/1.1 200 OK Cache-Control: max-age=100 Content-Type: application/json { .., "next": "/resource/2", .. }Pretty simple, huh? If you're surprised by my use of JSON, hold on a minute, I'll get to that.
I still think that get our heads around REST is the most difficult (and largely unaccomplished) part. The other obstacle is our frameworks: ones with REST baked in are rare and unpolished, mature ones often make REST difficult.