Starting the API endpoints