PUT is used by FB to update the comment because an existing resource is being updated, and that is what PUT does (updates a resource). PUT happens to be idempotent, in contrast to POST. Since PUT requests include the entire entity, if you issue the same request repeatedly, it should always have the same outcome (the data you sent is now the entire data of the entity).
Therefore PUT is idempotent. Using PUT wrong What happens if you use the above PATCH data in a PUT request? Use of PUT vs PATCH methods in REST API real life scenarios Difference between PUT, POST, GET, DELETE and PATCH in HTTP Verbs: The most commonly used HTTP verbs POST, GET, PUT, DELETE are similar to CRUD (Create, Read, Update and Delete) operations in database. We specify these HTTP verbs in the capital case.
how to put on weight in a week, Below is the comparison between them. Create - POST Read - GET Update - PUT Delete - DELETE PATCH: Submits a partial modification to a resource ... When embedding JavaScript in an HTML document, where is the proper place to put the <script> tags and included JavaScript? I seem to recall that you are not supposed to place these in the <... Where should I put <script> tags in HTML markup?
how to put on weight in a week, - Stack Overflow How do I put my website's logo to be the icon image in browser tabs? Learn how to place an icon inside an input element in a form using HTML and CSS techniques.