0

According to MDN:

POST: Create a new resource (e.g. add a new article to a wiki, add a new contact to a database).

PUT: Update an existing resource (or create a new one if it doesn't exist).

To me, it seems like PUT also encapsulates the functions of POST. So why not always use PUT? Or, perhaps there a scenario where POST is preferred?

hyang123
  • 1,208
  • 1
  • 13
  • 32
  • 3
    Did you see https://stackoverflow.com/questions/630453/put-vs-post-in-rest ? – reto Aug 27 '18 at 15:14
  • 3
    Possible duplicate of [PUT vs. POST in REST](https://stackoverflow.com/questions/630453/put-vs-post-in-rest) – hyang123 Aug 27 '18 at 15:41

0 Answers0