RESTful HTTP client library with composable interceptor architecture for Node.js and browsers
76
{
"context": "This criteria evaluates an engineer's ability to use rest.js library's HAL (Hypertext Application Language) converter capabilities to fetch and navigate hypermedia resources. The focus is on proper usage of rest.js HAL-specific features for handling _links and _embedded structures.",
"type": "weighted_checklist",
"checklist": [
{
"name": "HAL MIME Type",
"description": "Uses rest.js with proper HAL+JSON MIME type configuration (application/hal+json) via the mime interceptor or appropriate Accept headers",
"max_score": 25
},
{
"name": "Client Setup",
"description": "Correctly wraps rest.js client with necessary interceptors (mime interceptor at minimum) to enable HAL response parsing",
"max_score": 20
},
{
"name": "Link Following",
"description": "Uses rest.js response's .follow() method or accesses HAL _links relationships to navigate to related resources",
"max_score": 25
},
{
"name": "Embedded Access",
"description": "Accesses _embedded resources from HAL responses through the entity property of rest.js responses",
"max_score": 15
},
{
"name": "Promise Handling",
"description": "Properly handles rest.js promise-based responses using .then() or .entity() methods to extract HAL resource data",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-restevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10