Package Exports
- @tuby/webapi
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tuby/webapi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
#@tuby/webapi
##Installation With NPM:
$ npm install @tuby/webapiWith Yarn:
$ yarn @tuby/webapi##Update With NPM:
$ npm update @tuby/webapiWith Yarn:
$ yarn upgrade @tuby/webapiUsage
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đ Changelog
Detailed changes for each release are documented in the CHANGELOG.md