REST, HTTP DELETE and parameters

后端 未结 4 1274
不知归路
不知归路 2020-11-29 18:20

Is there anything non-RESTful about providing parameters to a HTTP DELETE request?


My scenario is that I\'m modelling the \"Are you sure you want to delete t

4条回答
  •  情歌与酒
    2020-11-29 18:36

    In addition to Alex's answer:

    Note that http://server/resource/id?force_delete=true identifies a different resource than http://server/resource/id. For example, it is a huge difference whether you delete /customers/?status=old or /customers/.

提交回复
热议问题