test rest api tree