First run at making an API