Introduced persistence of entity to REST api