Bird
0
0

Which of the following is the correct way to include a cursor in a REST API request URL?

easy📝 Syntax Q12 of 15
Rest API - Pagination Patterns

Which of the following is the correct way to include a cursor in a REST API request URL?

GET /items?____=abc123
Acursor
Blimit
Cpage
Doffset
Step-by-Step Solution
Solution:
  1. Step 1: Identify the query parameter for cursor

    Cursor-based pagination uses a parameter named cursor to mark the position for the next data fetch.
  2. Step 2: Match the parameter in the URL

    The URL should include ?cursor=abc123 to pass the cursor value.
  3. Final Answer:

    cursor -> Option A
  4. Quick Check:

    Cursor parameter in URL = cursor [OK]
Quick Trick: Cursor parameter is usually named 'cursor' [OK]
Common Mistakes:
  • Using 'page' or 'offset' which are for offset pagination
  • Confusing 'limit' with cursor
  • Leaving out the cursor parameter

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes