code for the initial api testing