Bird
0
0

If a REST API response includes:

medium📝 Predict Output Q5 of 15
Rest API - Pagination Patterns
If a REST API response includes:
Link: ; rel="last", ; rel="first"

What does the rel="last" URL represent?
AThe URL of the current page
BThe URL of the previous page
CThe URL of the next page
DThe URL of the last page of items
Step-by-Step Solution
Solution:
  1. Step 1: Understand the meaning of rel="last"

    The rel="last" attribute points to the last page in a paginated list.
  2. Step 2: Differentiate from other rel values

    rel="prev" is previous, rel="next" is next, and current page is not linked by rel.
  3. Final Answer:

    The URL of the last page of items -> Option D
  4. Quick Check:

    rel="last" means last page URL [OK]
Quick Trick: rel="last" always points to the last page URL [OK]
Common Mistakes:
  • Confusing last with next or prev
  • Assuming last means current page
  • Ignoring rel attribute meaning

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes