What happens if $id is int(0), I think it would delete the list, rather than the resource identified by id=0 ? Same goes for PUT.