Bird
0
0

An API doc shows:

medium📝 Debug Q6 of 15
Rest API - API Documentation
An API doc shows:
{"endpoint": "/data", "method": "GET", "parameters": "id"}

But the example request is missing the id parameter. What is the error?
AThe parameters field should be empty
BThe method should be POST instead of GET
CThe example request is incomplete without required parameters
DThe endpoint path is incorrect
Step-by-Step Solution
Solution:
  1. Step 1: Check required parameters in documentation

    The documentation says "parameters": "id", so id is needed.
  2. Step 2: Verify example request completeness

    If the example request misses id, it is incomplete and may cause errors.
  3. Final Answer:

    The example request is incomplete without required parameters -> Option C
  4. Quick Check:

    Required parameters must appear in examples [OK]
Quick Trick: Always include required parameters in examples [OK]
Common Mistakes:
MISTAKES
  • Changing HTTP method without reason
  • Assuming endpoint path is wrong
  • Ignoring parameters field

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes