Search the web
Sign In
New User? Sign Up
rest-discuss · REST Discussion Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
REST is not just file storage   Message List  
Reply | Forward Message #10740 of 14029 |
There seems to be a common thread with most posts here. People
have been busy modeling everything as a resource and now they
want to know how to do everything in a PUT or DELETE instead of
any of the other HTTP methods. That is wrong. That is thinking
HTTP is just a "Save as..." dialog.

REST is not limited to GET, PUT, and DELETE. Anyone who says so
is just making things up as they go along. REST is limited to the
client being told what to do next by the current state of where
they are now, aside from the entry point(s) we call a bookmark.
That is feasible because the set of methods is uniform, not because
it is limited to CRUD. POST is an equal party in the REST interface,
particularly when actions are being applied to the resources that
are a composite of multiple source resources. So is PATCH.

Doing RESTful actions on multiple resources is no different from
selecting multiple tunes in iTunes and using the info dialog
to set certain properties across all selected tunes. It is a UI issue.
The UI builds a set of actions to perform and then performs them
in whatever way is most efficiently provided by the set of resources
being operated upon. If those resources (or, rather, the index to
those resources) say they can be operated upon as a group by POST
of a selection form, then so be it -- that is perfectly RESTful
even without the benefit of per-resource cache invalidation.
Likewise for PATCH or PUT to a meta-resource, or PROPPATCH to a
WebDAV resource, it is RESTful if there is some engine described
by a representation provided by the origin server that instructs
the client on what to do next.

The goals are to remove coupling and maximize the number of
reusable resources.

....Roy



Mon May 5, 2008 9:17 pm

roy_fielding
Offline Offline
Send Email Send Email

Forward
Message #10740 of 14029 |
Expand Messages Author Sort by Date

There seems to be a common thread with most posts here. People have been busy modeling everything as a resource and now they want to know how to do everything...
Roy T. Fielding
roy_fielding
Offline Send Email
May 5, 2008
9:17 pm

Yes! And it's not just here -- this same take on REST can be found all over the web. For some reason, people just don't appreciate the hypermedia engine aspect...
wahbedahbe
Offline Send Email
May 6, 2008
5:23 am

... At first I thought that using non-standard methods like PATCH would be wrong as it wouldn't allow for serendipitous reuse . But what you are saying is...
dev
bertie_woost...
Offline Send Email
May 6, 2008
8:06 am

... Serendipitous reuse comes from providing a URI for everything that is of value as a resource (even when that value is not used by your own application)....
Roy T. Fielding
roy_fielding
Offline Send Email
May 6, 2008
9:57 pm

... Along with addressability , isn't a uniform interface necessary too[1] ? I am not saying uniform interface means that PUT should always do this , DELETE...
dev
bertie_woost...
Offline Send Email
May 7, 2008
10:07 am

... My understanding (and I'm sure I'll get corrected if I'm wrong) is that the interface is uniform due to the way the service tells the client what...
Andrew S. Townley
adz1092
Offline Send Email
May 7, 2008
10:28 am

... Anyone remembers Royce and the Waterfall Model? In a 1970 he criticed the waterfall approach and argued for iterative development. Most people's take...
Assaf Arkin
assafarkin
Offline Send Email
May 6, 2008
11:06 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help