flamerest
v1.0.109
Published
Promise based, easy and fast methods for MySQL requests.
Downloads
206
Readme
REST JS
Promise based, easy and fast methods for MySQL requests.
npm install flamerest --save
Usage
import FLAMEREST from "flamerest";
Vue.use(new FLAMEREST([custom_endpoint]));
or
import FLAMEREST from "flamerest";
window.REST = new FLAMEREST('localhost');
Create and Update
Just field list, but any field can be HTML Input [type=file], Clipboard object, DataTransfer [Drag&Drop/Clipboard] or FileList (automatically upload any of that)
Delete
Function Remove
. Can delete row by primaryKey - second parameter, or mass delete by fields condition - third parameter with fields