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

Support pagination in pipelines endpoint in API 2

    XMLWordPrintable

Details

    Description

      Summary

      Pagination is not working for pipelines endpoint in API 2

      Steps to Reproduce

      1. A repo with more than 10 Pipelines builds is needed to reproduce
      2. Execute the following curl command:
      #!curl
      
      curl --request GET --user username:password https://api.bitbucket.org/2.0/repositories/<username>/<repo-slug>/pipelines/
      

      Expected Results

      The output returns a paginated collection with a "next" field, including the link to the next page

      Actual Results

      The "next" field is missing from the output.

      Workaround

      Add a query parameter of the page, e.g. if you want to access the 2nd page:

      #!curl
      
      curl --request GET --user username:password https://api.bitbucket.org/2.0/repositories/<username>/<repo-slug>/pipelines/?page=2
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tboudale Theodora Boudale
              Votes:
              18 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated: