REST URLs for whenever..

Locked
User avatar
eyezberg
Joomla! Hero
Joomla! Hero
Posts: 2860
Joined: Thu Aug 25, 2005 5:48 pm
Location: Geneva mostly
Contact:

REST URLs for whenever..

Post by eyezberg » Sun Oct 08, 2006 8:21 pm

[quote="Peldi"]REST style:


    * use URIs that describe objects (not actions), and that are and human-readable. An 300-character long Amazon.com URL that ends in something like getBook?id=23cvxsfer34 is not REST, the wikipedia link above http://en.wikipedia.org/wiki/REST is very REST.

    * return resources like magic. REST puts emphasis of the readability of the URL, usual websites have URLs dictated by the file-system folder structure in which its resources live. So a key ingredient of a RESTful site is a piece of software that takes URL requests and munges them to spit out dynamic results (app-servers do this all the time, I want to learn if Apache does it and how...I might post a follow up when I do find out. If you know, please do share!).

Here's an example of a great REST link: http://del.icio.us/peldi/APIs. It's super-RESTful because it's short, it's descriptive (it addresses the resources I want), and it's just like magic! It uses one of the tags that I added to some of my links to just return a list of links that have that tag. I didn't go in and create an APIs folder on delicious' servers to get that nice URL. No-one did!

Allright, I'll wrap it up. What I like about it is that if more sites were RESTful, a lot more URLs would be easy to remember and share...making the internet a little more approachable for each of us (which means A LOT more approachable as a whole).[/quote]

http://www.peldi.com/blog/archives/software_i_like/
Sometimes one pays most for the things one gets for nothing.
The important thing is not to stop questioning. Curiosity has its own reason for existing. AE
http://joomla15.[URL banned].com for J! 1.5 screenshots
http://www.eyezberg.com

Locked

Return to “Wishlist Archives - Archived”