colindecarlo/uhura

Single delete Request to delete multiple resources

Closed this issue · 1 comments

Thanks for a good wrapper! Just wondering how to do the above?

I think the way that you would accomplish something like this would be to delete a set of resources associated to another resource. JSON:API talks about it here. So, I guess it all depends on how you've implemented your API.

You might be able to do it like this

$uhura->blogs(42)->comments->delete();

The JSON:API says that DELETEs may have bodies, at the moment, I'm not sure if Uhura can do that.

Also, sorry for the late reply, I had no idea anyone used this