I've an Azure DevOps Services instance. There in a team project, I did configure a Git based source code repository. I'm an API developer, I require to get an API to list all the repository.
From Microsoft Documentation I found the API endpoint should be like:
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories?api-version=5.1
(reference: https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-5.1)
- accessed on 2020-06-11
However, I found the following endpoint to work correctly and not the documented one!
https://dev.azure.com/{organization}/{projectName}/_apis/Git/repositories?api-version=5.1-preview.1
My question is there anything I am missing in invoking the REST API?