Draft of the rest api docs