API: implement retrieve of repository tree