Restful way for deleting a bunch of items

后端 未结 8 1108
栀梦
栀梦 2020-12-04 05:26

In wiki article for REST it is indicated that if you use http://example.com/resources DELETE, that means you are deleting the entire collection.

If you use http://ex

8条回答
  •  春和景丽
    2020-12-04 05:52

    I had the same situation to delete multiple items. This is what I ended up doing. I used DELETE operation and the ids of items which were to be deleted were part of HTTP header.

提交回复
热议问题