mbrest

1.0.0 • Public • Published

mbrest

rest api wrapper supports typescript language for motionboard 6.3

how to start


import mbrest from 'mbrest';

// configure endpoint and user
const rest = mbrest({
    endpoint: 'http[s]://xxxx/motionboard',
    id: 'userid',
    pw: 'password',
});

// rest[$pathname]({$param}) returns promise.
// $param will extends common param on configured
rest['rest/board/tree']({ path: '/xxx/sample' }).then(files => {
    // result here.
});

Readme

Keywords

Package Sidebar

Install

npm i mbrest

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

75.2 kB

Total Files

16

Last publish

Collaborators

  • r22n