skeleton code for the api + test