Bird
0
0

Which of the following is the correct way to document an API endpoint method?

easy📝 Syntax Q3 of 15
Rest API - API Documentation
Which of the following is the correct way to document an API endpoint method?
AGET /users - Retrieves a list of users
Busers GET - List all users
CRetrieve users via GET method
DGET: users endpoint returns users
Step-by-Step Solution
Solution:
  1. Step 1: Identify standard API documentation format

    The common format is METHOD followed by endpoint path and a short description.
  2. Step 2: Match options to this format

    GET /users - Retrieves a list of users matches this format exactly; others are informal or unclear.
  3. Final Answer:

    GET /users - Retrieves a list of users -> Option A
  4. Quick Check:

    Standard format = METHOD + endpoint + description [OK]
Quick Trick: Use METHOD then endpoint path for clarity [OK]
Common Mistakes:
MISTAKES
  • Writing method after endpoint
  • Using vague descriptions
  • Not specifying HTTP method

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes