RESTful web services and HTTP verbs

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

    Today's web browsers only handle GETS + POSTS. In Rails, for example, PUTS + DELETES are "faked" through hidden form fields.

    Unless your framework has some workaround to "support" PUTS + DELETES, don't worry about them for now.

提交回复
热议问题