working on REST api