First commit of API, copied from dashboard repo
 Added a base_url to the api