Optum interview question

What is the difference between PUT and POST?

Interview Answer

Anonymous

15 Sept 2019

PUT is idempotent i.e. if you make the request 1 time or 100 times, it won't change the outcome eg. Like button on Instagram whereas POST would change the outcome depending on the number of requests made eg. uploading an image.