XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 How to Create a REST Protocol
Subject: PUT is not an update
Date: 2005-05-04 07:06:11
From: Lars Huttar
Response to: PUT is not an update

""[idempotent means] the side-effects of N > 0 identical requests is the same as for a single request"
...
Update is never idempotent, whereas insert i[s]."


Somebody help me with this... It would seem to me the other way around: Update should be idempotent, not Insert. If you update, say, an employee #127's name to "Smith" multiple times, it's the same as doing it once. But if you Insert a new employee named Smith multiple times, you get multiple new employees, whereas if you do it once, you get one new employee. Thus, intuitively at least, Update is idempotent and Insert is not.
What am I missing?


Anyway, I appreciate the knowledgeable debate on PUT vs. POST. It is a confusing issue.


Thanks,
Lars


Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938