Reputation: 489
could someone tell a way to get file contents through rest api in azure devops? I tried in this way but it isnt getting proper results.
Upvotes: 0
Views: 5621
Reputation: 1
It should be in this format https://dev.azure.com/{organization}/{project}/_apis/sourceProviders/{providerName}/filecontents?api-version=5.0-preview.1
Service endpoint should be TFGit as per the documentation here
Upvotes: 0
Reputation: 489
The URL I have posted above works..I had given wrong input for source provider. It should have been TfsGit.
Upvotes: 2