docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This criteria evaluates how well the engineer uses the koa-route package to implement HTTP method-based routing, specifically focusing on the proper use of route.get(), route.post(), route.put(), and route.delete() functions with path patterns and parameter extraction.",
"type": "weighted_checklist",
"checklist": [
{
"name": "GET method routing",
"description": "Uses route.get() to define GET routes for /tasks and /tasks/:id endpoints, properly extracting the id parameter in the handler function",
"max_score": 25
},
{
"name": "POST method routing",
"description": "Uses route.post() to define POST route for /tasks endpoint to create new tasks",
"max_score": 20
},
{
"name": "PUT method routing",
"description": "Uses route.put() to define PUT route for /tasks/:id endpoint with proper parameter extraction for the id",
"max_score": 20
},
{
"name": "DELETE method routing",
"description": "Uses route.delete() (or route.del()) to define DELETE route for /tasks/:id endpoint with proper parameter extraction for the id",
"max_score": 20
},
{
"name": "Parameter extraction",
"description": "Correctly extracts route parameters (id) as function arguments in route handlers following the pattern (ctx, id, next) or (ctx, id)",
"max_score": 15
}
]
}