CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-rest

tessl install tessl/npm-rest@2.0.0

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

Agent Success

Agent success rate when using this tile

76%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.29x

Baseline

Agent success rate without this tile

59%

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
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/rest@2.0.x
tile.json