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...
Message search is now enhanced, find messages faster. Take it for a spin.

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 design question   Message List  
Reply | Forward Message #6804 of 14029 |
Hello all,
I have a design question for those who are more familiar with the REST
style.

Here are the resources I've identified in my sample app:
person
location

A person has a location. How should I move an existing person to an existing
location?
Originally I did a POST on location like so:
curl -d "bob" -H "Content-Type: text/plain" -X POST
http://localhost:8182/location/virginia

This says move person "bob" to location virginia.

Now I'm thinking it would be more "resource-ful" to PUT the person
with the updated location?

Appreciate your thoughts,
Chris

[Thanks MB for the subject head's up]
--
Chris Grindstaff | http://gstaff.org




Fri Nov 10, 2006 4:12 am

chrisgrind
Offline Offline
Send Email Send Email

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

Hello all, I have a design question for those who are more familiar with the REST style. Here are the resources I've identified in my sample app: person ...
Chris Grindstaff
chrisgrind
Offline Send Email
Nov 10, 2006
4:18 am

... 8182/location/virginia ... Oooh! Interesting question. From a database design perspective it might be a POST if Bob could have multiple locations (i.e. a...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 10, 2006
6:25 am

http://example.org/places/{place} http://example.org/people/{person} http://example.org/places/virginia <people> <person>bob</person> <person>jane</person> ...
Eric J. Bowman
eric@...
Send Email
Nov 10, 2006
6:58 am

... In your example, you used the plural of "place/places" and "person/people." Can you example why you chose plural, and the pros and cons for singular vs. ...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 10, 2006
7:09 am

... I'm not Eric, but I use plurals myself to maintain the hierarchical relationship -- the collection is /places/, a particular place is /places/xyz. Similar...
Justin T. Sampson
justin_t_sam...
Offline Send Email
Nov 10, 2006
7:23 am

Justin, ... I didn't mean to accidentally constrain responses to be from Eric, I'd love to hear from everyone on this. ... Thanks. Can you give me reasons...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 10, 2006
7:45 am

Sorry about my spam-tagged subjects, everyone. -1 me. ... While I agree with Justin, the counterargument is this: A URI is by its nature singular, xyz is...
Eric J. Bowman
eric@...
Send Email
Nov 10, 2006
7:57 am

Eric, ... but I don't think it's within the scope of REST-discuss. Fair. Given that, would you be able to suggest a place where it would be appropriate to...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 10, 2006
8:09 am

... How about rather than assessing an approach being a boolean REST or not-REST, we just assign points based on how many aspects of an approach are commonly...
Mike Dierken
mdierken
Offline Send Email
Nov 12, 2006
12:58 am

... This is approximately the stance taken by Don Box on the issue, where he differentiates between "Hi-REST" and "Lo-REST": ...
Alan Dean
alan_james_dean
Offline Send Email
Nov 12, 2006
2:26 am

... Bleah. Box's definition of "Hi-REST" is essentially WebDAV, which says to me he really doesn't get it (or at least didn't six months ago. Maybe since then...
Elliotte Harold
elharo@...
Send Email
Nov 12, 2006
11:14 am

... I agree that he doesn't get what REST really is - I simply quoted the reference on the basis that there is a real division between hi- and lo- REST(-like)...
Alan Dean
alan_james_dean
Offline Send Email
Nov 12, 2006
11:25 am

... What about REST does he get "wrong", specifically? -Mike Schinkel http://www.mikeschinkel.com/blogs/ http://www.welldesignedurls.org/...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 12, 2006
11:59 am

... Here is a quote of Roy's analysis of why WebDAV conflicts with REST: http://www.mail-archive.com/microformats-rest@.../msg00189.html I rest my...
Alan Dean
alan_james_dean
Offline Send Email
Nov 12, 2006
1:23 pm

... But like Roy was saying the other day, once you've done that the result can't be called REST. I am developing an architecture with its own name which is a...
Eric J. Bowman
eric@...
Send Email
Nov 10, 2006
8:10 am

... I don't care if it's called REST or "Walla-Walla-Hoo-Hoo." I'm looking pragmatically for something that adds a layer of value on REST; Frankly I don't...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 10, 2006
8:28 am

... No, that isn't being pedantic -- it is being superficial. What do you think abstractions are for? When your parents told you that the leaves of a given...
Roy T. Fielding
roy_fielding
Offline Send Email
Nov 10, 2006
10:03 pm

Roy T. Fielding said RTF>> No, that isn't being pedantic -- it is being superficial. To-may-to, To-mah-to. RTF>> Then why is it so hard to accept that an...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 12, 2006
12:17 pm

... This is just not so. I wrote an article for onlamp about REST and AJAX. I *know* that other people have written similarly good articles (Prescod's stuff is...
Nic James Ferrier
nferrier_tap...
Offline Send Email
Nov 12, 2006
1:27 pm

Nic>> This is just not so. I wrote an article for onlamp about REST and AJAX. Wow. How do I say this w/o offending... Because of the organization you chose, I...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 13, 2006
9:41 am

... [snip] ... Ordinarily, I don't participate so much in the list discussions - and I think it is worth my discussing why, in light of your statement above. I...
Alan Dean
alan_james_dean
Offline Send Email
Nov 12, 2006
1:37 pm

Alan Dead>> Hope that this illuminates :-) Yes, very helpful. I'll be interested in seeing what you offer. -Mike Schinkel http://www.mikeschinkel.com/blogs/ ...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 13, 2006
10:11 am

... No, you just don't understand the terminology yet. You asked a bunch of gardeners for help implementing green, or at least an easy-to-read guide on doing...
Roy T. Fielding
roy_fielding
Offline Send Email
Nov 12, 2006
10:18 pm

Roy: I'm not here to attack you; I've got a tons of respect for you and what REST offers. Please read on... ... back in 1993. Yes, 1993. Since then he has...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 13, 2006
11:41 am

... I agree with RTF that an "implementation guide" is a "different story" from the "architectural style" story that Roy told so well in his dissertation. So...
Nick Gall
nick_gall_1117
Online Now Send Email
Nov 13, 2006
12:02 pm

... Kind of, but not quite. They seem to be good examples but both seem to be a bit specific (i.e. not general purpose.) And they don't really seem to address...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 13, 2006
12:51 pm

... to be a ... Both claim to be quite general purpose: "The Google data APIs ('GData' for short) provide a simple standard protocol for reading and writing ...
Nick Gall
nick_gall_1117
Online Now Send Email
Nov 13, 2006
11:50 pm

... http://www.furl.net/item.jsp?id=12879797 . If GData ... I applaud that, but I'll be curious to see if they actually can use GData for everything w/o have...
Mike Schinkel
mikeschinkel
Offline Send Email
Nov 14, 2006
3:43 am

... All that needs to be said is that REST is a design style by which implementations can be evaluated and system behaviours can be predicted. I can't evaluate...
Bill de hOra
bdehora
Offline Send Email
Nov 13, 2006
1:20 pm
First  | < Prev  |  Last 
Advanced

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