rest-docs (v1.1.1) is a RESTful HTTP client library that auto-generates API documentation and provides a monitoring dashboard. It bundles a Node.js HTTP server with automatic CRUD route generation for databases (PostgreSQL, MySQL, MariaDB, MSSQL, SQLite3) via Knex. Unlike generic API builders, it exposes live docs and monitoring endpoints out of the box. The last release appears to be 1.1.1 with no recent updates; it uses CommonJS and requires manual driver installation.
npm install rest-docsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a RESTful API server with automatic CRUD routes, live docs, and monitoring for a 'doctors' table in MySQL.
Use require('rest-docs') instead of import.Install one of: pg, mysql, mssql, sqlite3.
Call rest.startDBServer('mysql', { host: ... }) instead of rest.startDBServer({ host: ... }).Ensure all column names exist in the database table.
Set compression to a valid string or omit it.
Use the correct table name casing.
npm install pg --save
Replace import with const rest_docs = require('rest-docs')Call rest.startDBServer('mysql', { host: 'localhost', ... })Add routes: { tb: [] } to api_config