rest api test implementation