Bird
0
0

Which URL correctly requests the 5th page with 20 items per page using page-based pagination parameters?

easy📝 Syntax Q3 of 15
Rest API - Pagination Patterns
Which URL correctly requests the 5th page with 20 items per page using page-based pagination parameters?
A/api/items?offset=5&count=20
B/api/items?page=5&limit=20
C/api/items?page=20&limit=5
D/api/items?start=5&size=20
Step-by-Step Solution
Solution:
  1. Step 1: Identify page-based pagination parameters

    Common parameters are page and limit.
  2. Step 2: Match parameters to URL

    /api/items?page=5&limit=20 uses page=5 and limit=20, which is correct syntax.
  3. Final Answer:

    /api/items?page=5&limit=20 -> Option B
  4. Quick Check:

    Page and limit parameters control pagination [OK]
Quick Trick: Use page and limit query parameters for pagination [OK]
Common Mistakes:
  • Confusing offset-based with page-based parameters
  • Swapping page and limit values
  • Using non-standard parameter names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes