Teys-rest v3.2.4 is a TypeScript wrapper around restify for quickly building REST API servers using annotations and class-based controllers. It supports two modes: a classic API server and an SPA server that serves a single-page application alongside the API. Controllers extend RestController and have dependencies injected via teys-injector. It uses modern TypeScript and ESM. Release cadence is unclear; last update appears stable but low activity.
npm install teys-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define a controller with two endpoints, register it with ApiServer, and start the server.
Use import syntax or ensure your project is configured for ESM (e.g., type: 'module' in package.json).
Extend RestController for all controllers.
Upgrade to v3.2.4 and follow current documentation.
Ensure teys-injector is installed (npm install teys-injector).
Install teys-injector: npm install teys-injector
Use import statement: import { RestController } from 'teys-rest'