Support pagination in pipelines endpoint in API 2

XMLWordPrintable

    • 8
    • Severity 3 - Minor
    • 1,278

      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
      

            Assignee:
            Unassigned
            Reporter:
            Theodora Boudale (Inactive)
            Votes:
            18 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: