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

0 votes

 

 

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

652 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot