Rest API - Pagination Patterns
Which of the following is the correct JSON structure for pagination metadata in a REST API response?
{
"data": [...],
"pagination": {
"current_page": 1,
"total_pages": 5,
"per_page": 10
}
}Which of the following is the correct JSON structure for pagination metadata in a REST API response?
{
"data": [...],
"pagination": {
"current_page": 1,
"total_pages": 5,
"per_page": 10
}
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions