Skip to content

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

Notifications You must be signed in to change notification settings

lefuturiste/vue-apitator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7df9d77 · Feb 24, 2022

History

45 Commits
Feb 24, 2022
Dec 20, 2021
Feb 24, 2022
Feb 24, 2022
Feb 24, 2022
Jul 10, 2020
Jul 10, 2020
Feb 24, 2022
Nov 14, 2018
Feb 24, 2022
Jul 10, 2020
Feb 24, 2022

Repository files navigation

Vue-Apitator

Unit test workflow

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

Installation

npm install --save vue-apitator

or

yarn add 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!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published