Method delete (Restful)

1

I would like to know how do I do a delete method that receives a list by parameters? I mean, instead of passing only the ID of the item to be deleted, I want to allow N items to be selected and removed all at once, in a single request.

How to do this semantically and that meets the standards?

    
asked by anonymous 23.12.2016 / 18:37

1 answer

0

You can pass an array of integers or a list of integers as a parameter. At the time of deleting you open a transaction, scroll through your array and delete record by record, when you are finished, you commit the transaction.

I do not know java to write the code for you, but I do it in .NET when I need something similar ...

    
23.12.2016 / 19:28