Add restResource in one method