Sign In/My Account | View Cart  
advertisement

Article:
 How to Create a REST Protocol
Subject: PUT is not an update
Date: 2004-12-02 21:01:02
From: John Schlesinger

Although it is tempting to think of PUT as an update, this is very misleading. It is actually more like an insert. POST is more like an update. So I think these are the wrong way around in the article.


As Roy Fielding says in http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html


" Methods can also have the property of "idempotence" in that (aside from error or expiration issues) the side-effects of N > 0 identical requests is the same as for a single request. The methods GET, HEAD, PUT and DELETE share this property. Also, the methods OPTIONS and TRACE SHOULD NOT have side effects, and so are inherently idempotent."


Update is never idempotent, whereas insert it.


John Schlesinger


Previous Message Previous Message   Next Message Next Message


Full Text Titles Only Newest First

Sponsored By: