new rest method