صفحه بندی

صفحه بندی ایساج به این صورت می باشد که تمامی api ها نتایج را به صورت ۱۰۰ تایی ارسال می کنند

نمونه درخواست با محصولات

  • Name
    page
    Type
    integer
    Description

    شماره صفحه مورد نظر

نمونه درخواست صفحه بندی

curl -G https://gateway.esaj.ir/conversations \
  -H "Authorization: Bearer {token}" \
  -d page=1

نتیجه درخواست

{
"data": [
...
],
"links": {
"first": "http://gateway.esaj.ir/api/products?page=1",
"last": "http://gateway.esaj.ir/api/products?page=5",
"prev": null,
"next": "http://gateway.esaj.ir/api/products?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 5,
"links": [
  {
    "url": null,
    "label": "« Previous",
    "active": false
  },
  {
    "url": "http://gateway.esaj.ir/api/products?page=1",
    "label": "1",
    "active": true
  },
  ...
  {
    "url": "http://gateway.esaj.ir/api/products?page=2",
    "label": "Next »",
    "active": false
  }
],
"path": "http://gateway.esaj.ir/api/products",
"per_page": 100,
"to": 100,
"total": 439
}
}

اطلاعات این صفحه مفید بود ؟