Finished building basic api layer