1.0.2 • Published 5 years ago

@lowb/apiz-vue v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@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

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago