Add rest api beginning - wip