Which endpoint follows REST naming best practice for listing students?
- GET /api/students
- POST /api/students/list
- GET /getAllStudents
- GET /api/studentlist.php?action=get
Answer
A) GET /api/students
Use plural nouns for resources and HTTP methods for actions.
Computer Science MCQ · More Web Services: Accessing and Creating MCQs · Practise