Forums

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

How to get file information about a git repo from REST API?

Henry Weber June 21, 2019

I'm trying to get information about what kinds of files are in a git repo using the REST API. Ideally I would be able to specify how many subdirectories I would be able to search as well.

1 answer

0 votes
Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2019

Hi Henry,

I suppose you can use /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/browse endpoint.

Henry Weber June 27, 2019

This would only work on Bitbucket Server right? I am trying to do this on Bitbucket Cloud.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events