A rapid RESTful API server for MySQL databases that automatically imports database structure and creates metadata for CRUD operations. Current version 0.8.1. It exposes two ports: one for administration (HTTPS) and one for API requests. Key differentiators: automatic metadata generation, batch commands with transactions, pre/post operation hooks, and SSL support. It is a self-contained server that uses Express-like patterns but is not actively maintained.
npm install mysql-restfulNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: require, optional settings, and start. Demonstrates how to connect to a MySQL database and expose RESTful endpoints.
Install OpenSSL or provide ssl/service.crt and ssl/service.key files before starting.
Run 'sudo setcap cap_net_bind_service=+ep /usr/local/bin/node' or use non-privileged ports via settings.
Restart the server after any schema changes, or manually update metadata via admin interface.
Replace with a valid SSL certificate (ssl/service.crt and ssl/service.key) or disable HTTPS for admin.
Consider migrating to a more modern REST API solution or patching to use mysql2.
npm install mysql-restful --save
Use setcap as described, or change apiPort to >1024.
Add the certificate to trusted store, or use a valid certificate.