tiny-api

0.2.1 • Public • Published

tiny-api

a tiny api library for generate api

usage

import {API} from 'tiny-api';
 
const api=API('role');
 
/*
the shape of api is {
    create:(record,context)=>{},
    remove:(record,context)=>{},
    update:(id,record,context)=>{},
    list:(page,size,condition,context)=>{},
}
*/

Readme

Keywords

Package Sidebar

Install

npm i tiny-api

Weekly Downloads

0

Version

0.2.1

License

ISC

Last publish

Collaborators

  • webbot