Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-8316

REST API: List all files in repo (like git ls-files) (BB-9449)

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      There is a "manifest" REST API endpoint for this that is undocumented and seemingly broken. I found it via the apigee browser:

      curl https://bitbucket.org/api/1.0/repositories/aslakhellesoy/pygments-main/manifest/a32d7988c3695e0b0a41cf764afaa9e701a858e7

      (The apigee API browser suggests a trailing slash, which didn't work).

      Anyway, this will only list the files at the root of the repository. I don't know if it's possible to make it behave recursively.

      Is there another way to list all files in a repo (for a given revision)? We'd very much like to support Bitbucket in https://cucumber.pro, but we need this functionality to do so.

              Unassigned Unassigned
              b2c31c3ff5d1 aslakhellesoy
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: