Azure DevOps Services - Documented REST API for Get All Repositories not working

Sk Shahnawaz-ul Haque 1 Reputation point
2020-06-11T10:40:37.173+00:00

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://learn.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?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,243 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-06-11T11:52:12.267+00:00

    They're actively answering Devops question in dedicated forums here.

    https://developercommunity.visualstudio.com/spaces/21/index.html

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments