Tag Archives: rest

RESTful API: the truth about POST and PUT

Original version of this article:

https://extensions.gibilogic.com/blog/105-restful-api-the-truth-about-post-and-put.html

So up until now whenever I heard or read someone talk about RESTful API, I had this confusion about POST and PUT being somewhat interchangeable.

But then again I thought, surely thery are not meant to be interchangeable, because in that case why create two different methods? It’s not like we’re talking about a programming language.

Tonight I decided to clear my doubts once and for all, and went to the source of it all:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

RFC 2616 is the one that defines the HTTP 1.1 protocol and it’s probably worth a reading for any web developer.

Continue reading RESTful API: the truth about POST and PUT