tuby webapi server visit lib
npm install @tuby/webapi
#@tuby/webapi
##Installation
With NPM:
``bash
`
$ npm install @tuby/webapi
`
With Yarn:
bash
`
$ yarn @tuby/webapi
`
##Update
With NPM:
bash
`
$ npm update @tuby/webapi
`
With Yarn:
bash
`
$ yarn upgrade @tuby/webapi
`
Usage
javascript
`
import {WebAPI} from '@tuby/webapi'
var webapi = new WebAPI({
"baseUrl": "http://192.168.19.41:10003/api",
});
webapi.signIn({
"name": "admin",
"pass": "admin123"
})
.then(res => {
expect(res).to.be.an('object');
console.log(res);
}).catch(res=>{
console.log(res);
})
`
Testing & Dev
``
npm run dev
npm run demo