@lowb/apiz-vue
v1.0.2
Published
A vue plugin for apiz
Downloads
6
Readme
@lowb/apiz-vue
A vue plugin for apiz
Installation
$ npm i -P @lowb/apiz-vue
Usage
import APIs from '@lowb/apiz-vue';
import Vue from 'vue';
Vue.use(APIs);
const apis = new APIs({
meta: {
getBooks: {
path: '/book'
}
},
retry: 1,
beforeSend() {},
afterResponse() {}
});
new Vue({
apis
});
// or
new Vue({
apis: {
name: '$http',
apiGroup: apis
}
});
// or
new Vue({
apis: [{
name: '$group0',
apiGroup: apis
}, {
name: '$group1',
apiGroup: apis
}]
});
Options
meta
meta of APIz- All other option of apiz-ng are supported
- All options of apiz-browser-client are supported