标签云

微信群

扫码加入我们

WeChat QR Code

This question already has an answer here:PUT vs. POST in REST34 answersI have read many answers about the difference between PUT and POST.The answer provided is PUT is Idempotent in almost all answers.When using a Put, an Id is provided and the complete entity is provided,My doubt is, what difference does it make if we use a post method with an id as an input along with the entity. In either of the cases, a DB query has to be done to check if the data is existing or not.So why two different methods? Is there any Difference between the two if the way they function? What extra functionality or feature does PUT technically provide over POST rather than just the verbal difference.