node-strapi-sdk

0.1.0 • Public • Published

node-strapi-sdk

strapi 的 RESTful API 封装,使用 ES6 promise

Usage

npm install node-strapi-sdk --save
export STRAPI_HOST='your strapi host'
export STRAPI_USERNAME='username'
export STRAPI_PASSWORD='password'
var strapi = require('node-strapi-sdk');
 
strapi.get('/resources').then();
strapi.get('/resources/:id').then();
 
strapi.post('/resources', {}).then();
 
strapi.put('/resources/:id', {}).then();
 
strapi.del('/resources/:id').then();

Readme

Keywords

Package Sidebar

Install

npm i node-strapi-sdk

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • zhengxiaowai