users@jersey.java.net

Creating multiple resources

From: Chris Carrier <ctcarrier_at_gmail.com>
Date: Fri, 16 Apr 2010 09:50:19 -0700

Hey guys I have what should be a simple question but I haven't been
able to confirm it anywhere. I have a POST end point that will bulk
create records based on a JSON list getting passed in. So in my
normal POST responses I put the URI in the location header. If I
create multiple resources is the convention to just pass the URI's
back as multiple location headers? That seems right but I can't find
any mention of it anywhere. And if that is correct what's the best
way to do the in Jersey? Something like:

Response.status(Status.created).location(URI1).location(URI2) ?

Thanks!
Chris