← Quiz: Node, Express and REST: all 10 questions
Quiz: Node, Express and REST · Question 9 of 10
Which is a REST-style route for deleting course 7?
Which is a REST-style route for deleting course 7?
- A.GET /deleteCourse?id=7
- B.POST /courses/delete/7
- C.DELETE /courses/7
- D.GET /courses/7/remove
Answer & explanation
Correct answer: DELETE /courses/7
The URL names the resource and the HTTP method says what to do with it.
Can you get the rest right without peeking?
Take the timed Quiz: Node, Express and REST quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →