CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-rest

RESTful HTTP client library with composable interceptor architecture for Node.js and browsers

76

1.28x
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses rest.js's MIME type handling capabilities, specifically the mime interceptor for automatic serialization and deserialization, MIME registry for content type conversion, and proper content negotiation through Accept headers.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses mime interceptor",
      "description": "Wraps the rest client with the mime interceptor to enable automatic content negotiation, serialization, and deserialization based on Content-Type and Accept headers",
      "max_score": 25
    },
    {
      "name": "Automatic deserialization",
      "description": "Leverages the mime interceptor's automatic response deserialization capability by allowing rest.js to parse the response entity based on the server's Content-Type header (e.g., application/json automatically parsed to JavaScript object)",
      "max_score": 25
    },
    {
      "name": "Serialization to formats",
      "description": "Uses the MIME registry's built-in converters to serialize data to different output formats by setting appropriate Content-Type headers or using the registry.write() method for application/json, application/x-www-form-urlencoded, and text/plain",
      "max_score": 30
    },
    {
      "name": "Accept header setup",
      "description": "Configures Accept headers in the request to indicate preferred response formats, either by setting request.headers.Accept directly or letting the mime interceptor generate it automatically from the MIME registry",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-rest

tile.json