Give me a example of non-RESTful design?

前端 未结 4 1454
悲&欢浪女
悲&欢浪女 2021-02-19 05:18

I learned the term \"RESTful\" as a Rails developer. After reading wikipedia, also here and here.

I don\'t get it. It seems to me, Rails is only using a concise<

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 06:08

    A GET should be safe to be RESTful, but obviously combined with a delete it is unsafe.

    So it looks RESTful but doesn't act RESTful. So it fails the duck test.

提交回复
热议问题