Retrieving folder contents in Azure git

Viewed 37

For Azure git, I am able to retrieve the contents of a file in the browser using this: https://dev.azure.com/{organization}/{Project}/_apis/sourceProviders/TfsGit/filecontents?repository={repo}&path={filename}&commitOrBranch=master&api-version=5.0-preview.1

But when I call a similar command that should list all files in a directory, it doesn't work: https://dev.azure.com/{organization}/{Project}/_apis/sourceProviders/TfsGit/pathcontents?repository={repo}&path={foldername}&commitOrBranch=master&api-version=5.0-preview.1

It always returns this:

{"count":0,"value":[]}

What am I doing wrong?

0 Answers
Related