test rest api