Bird
0
0

An endpoint documentation snippet shows:

medium📝 Debug Q7 of 15
Rest API - API Documentation
An endpoint documentation snippet shows:
{"endpoint": "/payments", "method": "POST", "requestBody": {"amount": "number", "currency": "string"}}

What important detail is missing that could lead to ambiguity for API consumers?
AThe endpoint URL path
BThe HTTP method used for the endpoint
CThe response status codes and their meanings
DThe data types of request body fields
Step-by-Step Solution
Solution:
  1. Step 1: Review the snippet

    The snippet includes the endpoint URL, HTTP method, and request body fields with data types.
  2. Step 2: Identify missing documentation elements

    It lacks any information about possible response status codes and their meanings, which are crucial for understanding API behavior.
  3. Final Answer:

    The response status codes and their meanings -> Option C
  4. Quick Check:

    Response codes missing? [OK]
Quick Trick: Always include response status codes in documentation [OK]
Common Mistakes:
MISTAKES
  • Not documenting response codes
  • Assuming request body types are enough
  • Ignoring error responses

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes