Bird
0
0

You receive this Link header:

medium📝 Debug Q14 of 15
Rest API - Pagination Patterns
You receive this Link header:
Link: https://api.example.com/items?page=2; rel="next"

What is wrong with this header?
AThe URL should not contain query parameters
BThe rel attribute should be capitalized
CThe semicolon should be a comma
DThe URL is missing angle brackets <>
Step-by-Step Solution
Solution:
  1. Step 1: Check URL formatting in Link header

    URLs in Link headers must be enclosed in angle brackets <> to be valid.
  2. Step 2: Verify other parts

    rel attribute is case-insensitive and semicolon is correct separator; query parameters are allowed.
  3. Final Answer:

    The URL is missing angle brackets <> -> Option D
  4. Quick Check:

    URL must be inside <> in Link header [OK]
Quick Trick: Always put URLs in angle brackets in Link headers [OK]
Common Mistakes:
  • Omitting angle brackets around URLs
  • Changing semicolon to comma incorrectly
  • Thinking rel attribute is case sensitive

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes