🎙 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 4 of 10

Which URL design follows REST conventions?

Which URL design follows REST conventions?

  1. A.GET /getAllCourses
  2. B.POST /deleteCourse?id=7
  3. C.DELETE /api/courses/7
  4. D.GET /courses/delete/7
Answer & explanation

Correct answer: DELETE /api/courses/7

Use nouns in URLs and the HTTP method as the action.

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 →