Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Noah Campus 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

0 votes
Neel Devani 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)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events