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

How to fetch the list of Python Repos in Bitbucket using API Search Query String?

krishna murali
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!
August 19, 2024

Hi Team,

We are from SonarQube Code Quality Team and we are using the below Bitbucket version.

Atlassian Bitbcuket v8.9.7 

 

As part of the Python Code Coverage, we are trying to identify only the list of Python Repos in our Bitbucket Repository using an API Search String Query which will list out only the .py repos.

 

Thanks,

Murali Sulam

1 answer

0 votes
Aman Shrivastava
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 31, 2024

Hi Murali,

Welcome to the Atlassian community.

You may try the following query to list the repositories whose name ending with .py. Although this way of querying is not listed in the doc, it may work in your scenario. 

curl -u <Admin-User> --request GET --url 'http://{baseurl}/rest/api/latest/repos?limit=1000&name=%.py' --header 'Accept: application/json'

 
Regards,
Aman

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events