Breadcrumbs

Offer search - Result pagination

Page 1 with default parameters

  • Given  the input parameters are

name

value

query

nike+air

  • When  the client perform a GET on /api/public/search/offers with the input parameters

  • And  the json response contains meta/offers with the following content

JSON
{
  "offers": {
    "available": 500,
    "returned": 20,
    "remaining": 480,
    "pageSize": 20,
    "currentPage": 1,
    "nextPage": 2,
    "totalPages": 25
  }
}

Page 2

  • Given  the input parameters are

name

value

query

nike air

page

2

pageSize

20

  • When  the client perform a GET on /api/public/search/offers with the input parameters

  • And  the json response contains meta/offers with the following content

JSON
{
  "offers": {
    "available": 500,
    "returned": 20,
    "remaining": 460,
    "pageSize": 20,
    "currentPage": 2,
    "nextPage": 3,
    "totalPages": 25
  }
}

Page 3

  • Given  the input parameters are

name

value

query

nike+air

page

3

pageSize

20

  • When  the client perform a GET on /api/public/search/offers with the input parameters

  • And  the json response contains meta/offers with the following content

JSON
{
  "offers": {
    "available": 500,
    "returned": 20,
    "remaining": 440,
    "pageSize": 20,
    "currentPage": 3,
    "nextPage": 4,
    "totalPages": 25
  }
}