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

Bitbucket Download API to obtain the complete files with Metadata

    XMLWordPrintable

Details

    • 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.

    Description

      Summary:
      Using the the below API to download the files from Bitbucket Cloud we see that only the readable data or a portion of the file is downloaded and not the complete file.
      This is not convenient when users need to download large files using automated APIs.

      API: 

      /2.0/repositories/{workspace}/{repo_slug}/downloads/{filename}

       Note: This endpoint returns the actual file contents and not the artifact's metadata.

      Workaround:
      1. Use the Downloads section of the Repository to download the individual files 
      2. Use the below link to download all the files along with meta data

      Link: 

      https://bitbucket.org/<username>/<repo-name>/get/master.zip

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            cmysoresuresh Charan Mysore Suresh (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: