Bird
0
0

What is wrong with this Link header?

medium📝 Debug Q7 of 15
Rest API - Pagination Patterns
What is wrong with this Link header?
Link: ; rel=next
ALink header must include multiple URLs
BURL should not have query parameters
Crel value should be in quotes
DAngle brackets are not allowed
Step-by-Step Solution
Solution:
  1. Step 1: Check rel attribute syntax

    The rel value should be enclosed in double quotes to be valid.
  2. Step 2: Validate other parts

    Query parameters are allowed, multiple URLs are optional, and angle brackets are required around URLs.
  3. Final Answer:

    rel value should be in quotes -> Option C
  4. Quick Check:

    rel values need quotes in Link headers [OK]
Quick Trick: Always quote rel values in Link headers [OK]
Common Mistakes:
  • Leaving rel unquoted
  • Removing query parameters
  • Misusing angle brackets

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes