Hello all,
I'm working on a sample app with restlets. It's going well so far. I
have a design question for those who are more familiar with the REST
style.

Resources:
person
location

A person has a location. How should you 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
-- 
Chris Grindstaff | http://gstaff.org

Reply via email to