got the basics of the api working