The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting all branches for all repos within a project with REST Api

Noah Campus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2022

Hi,

 

I am trying to list all branches within a project.

I can get the branches for specific repos with: https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/refs/branches

but I want a list of all repositories and their branches.

 

Is there a way to achieve this?

 

Regards 

Noah

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Neel Devani
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2022

Hey @Noah Campus  I am trying to do the same but so I far I get list of all repos which is under some proj with basic authentication in auth header wiht like this 

{BASE_URL}/rest/api/1.0/projects/{projectKey}/repos


you can refer this 👇
REST Resources Provided By: Bitbucket Server - REST (atlassian.com)

TAGS
AUG Leaders

Atlassian Community Events