RESTful web services and HTTP verbs

前端 未结 5 1890
后悔当初
后悔当初 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:20

    Yes, you can live without PUT and DELETE.

    This article tells you why: http://www.artima.com/lejava/articles/why_put_and_delete.html

    While to true RESTafrians this may be heresy, in the real world you do what you can, with what you have. Be as rational as you can and as consistent with your own convention as you can, but you can definitely build a good RESTful system without P and D.

    rp

提交回复
热议问题