RESTful web services and HTTP verbs

前端 未结 5 1918
后悔当初
后悔当初 2021-02-19 06:37

What is the minimum set of HTTP verbs that a server should allow for a web service to be classed as RESTful?

What if my hoster doesn\'t permit PUT

5条回答
  •  庸人自扰
    2021-02-19 07:19

    You can also use X-Http-Verb-Override:DELETE inst. of HTTP DELETE. This is also usefull for Silverlight clients who cant change the HTTP verbs and only support GET and POST...

提交回复
热议问题