美文网首页
RESTful Services

RESTful Services

作者: SummerDreamEve | 来源:发表于2018-06-07 08:27 被阅读0次

http://www.drdobbs.com/web-development/restful-web-services-a-tutorial/240169069?pgno=1

Difference between PUT and POST

image.png
-It is clear from the above table that a PUT request will not modify or create more than one resource no matter how many times it is fired (if the URI is same). There is no difference between PUT and POST if the resource already exists, both update the existing resource. The third request (POST http://MyService/Persons/) will create a resource each time it is fired. A lot of developers think that REST does not allow POST to be used for update operation; however, REST imposes no such restrictions.

相关文章

网友评论

      本文标题:RESTful Services

      本文链接:https://www.haomeiwen.com/subject/rddwsftx.html