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

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