simplify rest response