question

SkShahnawazulHaque-3222 avatar image
SkShahnawazulHaque-3222 asked ·

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

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?


not-supported-azure
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
DSPatrick answered ·

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.


Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.