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

krishna murali
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 thelist of Python Reposin our Bitbucket Repository using anAPI Search String Querywhich will list out only the.py repos.

Thanks,

Murali Sulam

1 answer

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

HiMurali,

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 inorSign upto answer
TAGS
AUG Leaders

Atlassian Community Events