Bird
0
0

Why might a REST API choose to use custom link relation types instead of standard ones like 'next' or 'self'?

hard📝 Conceptual Q10 of 15
Rest API - HATEOAS and Linking
Why might a REST API choose to use custom link relation types instead of standard ones like 'next' or 'self'?
ATo express domain-specific relationships not covered by standard types
BBecause standard link relations are deprecated
CTo reduce the size of HTTP headers
DTo prevent clients from following links automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand purpose of custom link relations

    Custom relations allow APIs to describe unique relationships specific to their domain.
  2. Step 2: Exclude incorrect reasons

    Standard relations are not deprecated; custom types do not reduce header size or block clients.
  3. Final Answer:

    To express domain-specific relationships not covered by standard types -> Option A
  4. Quick Check:

    Custom link relations express unique domain links [OK]
Quick Trick: Use custom relations for unique domain links [OK]
Common Mistakes:
  • Believing standard relations are deprecated
  • Thinking custom relations reduce header size
  • Assuming custom relations block link following

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes