wip: Add rest api