Add first implementation of REST api