REST interface for your SQL database.
restabase uses sequelize ORM and should support all databases sequelize does. NOTE: It has been tested only with MySQL.
##Instructions
###Install
Prerequisites: You will need node
, npm
and git
installed.
cd
to folder you want to use- clone the repository:
git clone https://github.com/marin-liovic/restabase
cd
to new restabase folder and runnpm install
cd
to install folder- edit config files inside
/config
- run
node app.js
- optionally you can install
forever
globally and use it to run restabase:forever start app.js
- returns information about all available data endpoints
- returns data from the table
- accepts query parameter
fields
to select returning fields; multiple values should be comma separated - accepts query parameters
offset
andlimit
to support pagination - supports equality filtering with query parameters: {field_name}={value}
- supports operators
gt
(greater than),gte
(greater than or equal),lt
(less than),lte
(less than or equal),ne
(not equal),like
(SQL like functionality),notLike
(SQL not like functionality) with query parameters: {field_name}${operator}={value}