or run

npx @tessl/cli init
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how well the engineer uses koa-route to integrate routing middleware with a Koa application. It focuses on proper usage of HTTP method-specific route functions, correct parameter extraction, and proper middleware integration patterns.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "GET route definition",
      "description": "Uses route.get() to define the GET /users/:id endpoint correctly",
      "max_score": 15
    },
    {
      "name": "POST route definition",
      "description": "Uses route.post() to define the POST /users endpoint correctly",
      "max_score": 15
    },
    {
      "name": "DELETE route definition",
      "description": "Uses route.delete() or route.del() to define the DELETE /users/:id endpoint correctly",
      "max_score": 15
    },
    {
      "name": "Multi-parameter route",
      "description": "Uses route method (e.g., route.get()) to define the /api/:resource/:action endpoint with multiple parameters",
      "max_score": 15
    },
    {
      "name": "Parameter extraction",
      "description": "Correctly extracts path parameters as function arguments in route handlers (e.g., (ctx, id) => or (ctx, resource, action) =>)",
      "max_score": 20
    },
    {
      "name": "Middleware integration",
      "description": "Properly integrates route middleware with Koa using app.use() to register each route",
      "max_score": 15
    },
    {
      "name": "Context usage",
      "description": "Accesses the Koa context object (ctx) correctly in route handlers to work with request/response data",
      "max_score": 5
    }
  ]
}