DIGITAL
GEZGİN
π
API Test ve Dokümantasyon Araçları

API Pagination Response Oluşturucu

Liste endpointleri için pagination JSON response örneği üret.

Bu araç ne işe yarar?

Liste endpointleri için sayfalama bilgisi içeren standart API response taslağı üretir.

Nasıl kullanılır?

  1. page, per_page, total ve resource değerlerini yaz.
  2. Response Oluştur butonuna tıkla.
  3. meta alanındaki sayfalama bilgisini kontrol et.
  4. Liste endpoint dokümanında örnek response olarak kullan.

Örnek kullanım

Örnek girdi

page=1
per_page=10
total=125
resource=posts

Örnek çıktı

{
  "success": true,
  "data": [],
  "meta": {
    "current_page": 1
  }
}

İpuçları

Pagination response içinde total, current_page, per_page ve last_page alanları frontend için çok değerlidir.