PUT is used to update (one or more fields - like SQL update how works) POST is used to insert a new record (like SQL INSERT)
Interviews5 answers
What is the difference between PUT and POST request in REST APIs?
5 Answers
Sathiya MoorthyPosted Aug 1, 2019, 8:35 PM EDT
Put is use to update the resources and post is used to create resources.
Amit PhadtarePosted Oct 22, 2018, 1:17 AM EDT
PUT is idempotent means if you send n request to the server for for the same resource ,the resource will not be created instead will be updated.
POST is not an idempotent means if you send n number of request to the server for the same resource n number of resource will be created
Generally Put is used for update the resource and Post is used for create the resource
appalanaidu vallePosted Oct 12, 2018, 3:03 AM EDT
PUT:
Used to create a resource, or overwrite it. While you specify the resources new URL.
POST:
Used to modify and update a resource.
Bala SPosted Oct 9, 2018, 9:50 AM EDT
PUT and POST both can be used for creating objects.
PUT - Create or Update object i.e. its idempotent which means if you put an object twice it has no effect.
POST - Create object i.e. it updates the data in resource and creates new instance.
Krunal LokhandePosted Aug 18, 2018, 9:24 AM EDT

