finish rest api calls