PUT or POST – Which one to choose!!!

When we develop a RESTFul application we use the HTTP methods (verbs) to create, modify or access to the resources from the application. So, what are these HTTP methods anyway? They are nothing but defines an action that the HTTP request will perform on the server.  These are the HTTP Verbs available to perform action :

  1. GET
  2. POST
  3. PUT
  4. PATCH
  5. DELETE

Most of these verbs are self-explanatory, right?

But, what about the POST and PUT ??? The most common answer is the POST for creating resources while PUT for updating. However, this is how it is being used but why?

In this article, I would try to explain the difference between POST and PUT…

Continue reading