Home > Enterprise >  Azure Devops API to get all files in a repository with folders
Azure Devops API to get all files in a repository with folders

Time:12-09

Is there an API endpoint for Azure Devops where I can get all leaf nodes (anything that isn't a folder essentially) for a tree structure? Right now, I loop through the root of the repository, then for recurse over each folder, then each folder within the folder, etc. There isn't really a better way to do it unless there is an API that will return the contents of a repository as a list that I can then filter based on gitObjectType.

I found enter image description here

  • Related