Practice ยท 1 of 3
Route Reviewer
Write reviewRoute(method, path) scoring RESTfulness: return "good" for resource-style routes (path has no verb words like get/list/create/delete/update/fetch/save, case-insensitive); "verb" when a verb word appears in the path; "missing-id" when the method is PUT/PATCH/DELETE but the path has no id segment (last segment not a parameter). Order of checks: verb first, then id presence.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: REST Resource Design โ Practice