Forums

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

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 edited

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
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events