A configuration-only REST server built on Express, enabling zero-code API creation via JSON/YAML/JS configuration files. Version 5.0.0 is the latest stable, with frequent releases. Differentiators include declarative route definitions, built-in request validation, and auto-generated Swagger docs. Supports TypeScript out of the box with full type declarations.
npm install node-rest-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a REST server with one GET route returning a hardcoded array of users.
Use import syntax (ESM) or dynamic import(): const { createServer } = await import('node-rest-server').Ensure config object contains only documented keys (port, routes, etc.).
Rename your config file to rest.config.json or rest.config.js and adjust imports.
Set wrapResponse: false in route config for raw response.
Run 'npm install node-rest-server' and ensure your project is configured for ESM (e.g., 'type': 'module' in package.json).
Use named import: import { createServer } from 'node-rest-server'. Do not use default import.Remove 'ssl' key; node-rest-server does not support HTTPS natively. Use a reverse proxy instead.