M
M
Michael2018-08-31 17:29:00
RESTful API
Michael, 2018-08-31 17:29:00

How to delete items in rest api?

This is a known issue. There is even a discussion on SO.
Need to delete some items in some collection. It is clear that it is possible to do DELETE for each, but this does not fit.
Of the interesting - they suggested making a selection resource: a list is selected for which a DELETE request is then sent. But it requires the implementation of this resource.
In my case, it is necessary not only to edit the items and delete some, but also to take an action after the first two. There is an idea to create an endpoint to which the list will come and labels for deletion, as a result of which the items will be edited, deleted (if necessary) and the final action will be performed. But it's not Feng Shui.
How would you do?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question