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
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 ...
... 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...
... 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. ...
... 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, ... 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...
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@...
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...
... 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...
... 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@...
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)...
... 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@...
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...
... 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 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...
... 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>> 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...
... [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 Dead>> Hope that this illuminates :-) Yes, very helpful. I'll be interested in seeing what you offer. -Mike Schinkel http://www.mikeschinkel.com/blogs/ ...
... 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: 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...
... 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...
... 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...
... 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 ...
... 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...
... 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...