Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3637

If PATCH can do everything that PUT can do then why even PUT exists? [duplicate]

$
0
0

If PATCH can do everything that PUT can do then why even PUT exists?

I researched a lot on this topic and I am able to know basic difference between the two.

PUT is for creating or updating/replacing the existing. we need to send whole body herePATCH is for updating only some fields like here we only send fields which needs to be updated.

BUT if we send whole body in PATCH then it works exactly like PUT...So with help of PATCH we can update few itmes also and we can update the whole resource..then why PUT even exists?

Can only PATCH be used? NO PUT method required? or Am i missing soemthing?


Viewing all articles
Browse latest Browse all 3637

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>