flamerest
Version:
Promise based, easy and fast methods for MySQL requests.
27 lines (17 loc) • 642 B
Markdown
# 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