← Quiz: REST APIs: all 10 questions
Quiz: REST APIs · Question 2 of 10
Which URL design follows REST conventions for deleting course 7?
Which URL design follows REST conventions for deleting course 7?
- A.GET /api/deleteCourse?id=7
- B.POST /api/courses/delete/7
- C.DELETE /api/courses/7
- D.PUT /api/courses/7/remove
Answer & explanation
Correct answer: DELETE /api/courses/7
The method is the verb; the URL names the resource.
Can you get the rest right without peeking?
Take the timed Quiz: REST APIs quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →