Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48973

Add prev link to Blueocean API response

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None
    • Blue Ocean 1.6 - beta 2, Blue Ocean - 1.6 - beta 4

      Currently only next Link header is generated in blueocean API response for collection APIs.

      To support previous in UI, we need previous (rel="prev") HTTP Link header parameter in blueocean response as well.

      Refer to PagedResponse.

      Link:</blue/rest/organizations/?start=100&limit=100>; rel="next",
            </blue/rest/organizations/?start=0&limit=100>; rel="prev"
      
      • Generate prev Link parameter only for pages > 1
      • Generate next Link parameter only for pages != total-page-size or when its not last page
      • Write tests to validate start, prev and next values

            nicu Nicolae Pascu
            vivek Vivek Pandey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: