0.0.19 • Published 2 years ago

vue-apitator v0.0.19

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

WIP Apitator

A simple way to query your REST or your GraphQL API in your Vue.js app

Installation

npm install --save vue-apitator

Usage

in your main.js:

import Apitator from 'apitator'
Vue.use(Apitator, {
  baseUrl: 'https://example.com/api'
})

in your vue component:

this.$apitator.get('/users').then(response => {
  console.log(response.data)
})

Test

Test with jest, execute with:

npm run test

or, to watch:

npm run test-watch

Contribution

You can contribute to apitator by forking this repository and pull request your changes. This lib is written in typescript, you can use npm run dev to start adding features!

If you have any problems with this library, feel free to create an issue!

0.0.18

2 years ago

0.0.19

2 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.13

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago