Finshed setting up the APIs