Added tree resource to rest api