Missed Team ’24? Catch up on announcements here.

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

How to get all branches for some repository.

Lukas Nosko April 24, 2018

Hi,

How can I get all branches for current repository ? As first I get all repositories for my team through this api: https://api.bitbucket.org/2.0/repositories/{TeamName} and used basic authentication for user who has permissions to read repositories. I found in documentation that when I get UUID of repo then no team or user need to be specified. So I used this api for getting all branches: /repositories/{username}/{repo_slug}/refs/branches exactly I used this format: https://bitbucket.org/2.0/repositories/%7B%7D/%7BUUID_Repo7D/refs/branches and dont use any authentication and I get nothing - message not found. So could you please advice me how can I get all branches for current repo ?

 

Thanks 

 

Lukas

1 answer

0 votes
Lukas Nosko April 24, 2018

I made mistake with https://api... :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events