Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

flamerest

FlameArt240MIT1.0.125TypeScript support: included

Promise based, easy and fast methods for MySQL requests.

rest, yii2, js, ts

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