Switched api calls to use recursive trees for repository content