Init rest method