RESTful Services

2018-06-07  本文已影响0人  SummerDreamEve

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.
上一篇 下一篇

猜你喜欢

热点阅读