or run

npx @tessl/cli init
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-4/

{
  "context": "This evaluation criteria assesses how well the engineer uses koa-route to implement parameterized routes. It focuses specifically on the proper use of koa-route's path parameter syntax, method-specific routing functions, and parameter extraction patterns.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "route.get() usage",
      "description": "Uses route.get() method from koa-route to define GET routes (should have 3 route.get() calls for /posts/:id, /category/:categoryName/posts, and /users/:username)",
      "max_score": 25
    },
    {
      "name": "Parameter syntax",
      "description": "Uses correct :paramName syntax in route paths to define parameters (e.g., :id, :categoryName, :username)",
      "max_score": 20
    },
    {
      "name": "Single parameter extraction",
      "description": "Correctly extracts single path parameter in route handler for /posts/:id and /users/:username routes (parameter should be received as second argument after ctx)",
      "max_score": 20
    },
    {
      "name": "Multiple parameter extraction",
      "description": "Correctly extracts multiple path parameters in route handler for /category/:categoryName/posts route (categoryName parameter should be received as second argument after ctx)",
      "max_score": 20
    },
    {
      "name": "Middleware integration",
      "description": "Properly integrates routes with Koa app using app.use() to register the koa-route middleware functions",
      "max_score": 15
    }
  ]
}