🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.GET /deleteCourse?id=7
  2. B.POST /courses/delete/7
  3. C.DELETE /courses/7
  4. 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 →