How to get files from multiple path using wild card i n API

Hi Guys,

I have many folders starting with name "dynamic".I need to get files from all folders which has name as "dynamic"

Example:

Folder 1 - dynamic_xyz

Folder 2 - dynamic_abc

Folder 3- dynamic_fgc

I need to get files from all the folders using BitBucket API 

 

I tried below API but doesn't work,

https://abc.com/rest/api/1.0/projects/repos/repo_slug/files?path=%Dynamic_%

                 It gives me error.

 

Can anyone help on this

1 answer

This widget could not be displayed.

 

 

Hi Sivanandam, have you checked this documentation?  

Looks like it should be possible but the path parameter may need to be absolute:

/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/files/{path:.*}

You can use wildcard in the file part, not the path.

If you try with this and keep getting errors, please send us a screenshot of them as it might help identify what's going wrong. 

Regards,

Ana

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,316 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you