users@jersey.java.net

[Jersey] DELETE request that deletes a collection of objects

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Fri, 04 Nov 2011 12:45:36 -0400

Dear Colleagues,

In my REST interface I have a resource method to delete a single object
like this:

     @DELETE
     @Path("/objects/{id}")
     public Response deleteObject(@PathParam("id") String id) {
         ...
     }

I now have a need to delete a set of such objects. Note that there is no
single resource in my model that represents a collection resource.

What is the best way to handle this? Is there a way to specify multiple
(1 or more) {id} params in the DELETE request?

Thank you for your help.

-- 
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com