refactor: work on REST

ref. #88