Vue JSON:API
Painless integration with well formatted API
Data normalization
Forget about accessing raw api responses and use simple normalized data objects.
Declarative data fetching
Declare in component what resources you need and don't worry about all the things related to the call.
Auto updates
Resources are shared and reused so any record changes are propagated to all places where given record is used.
# Setup
Install package with your favourite package manager
yarn add vue-jsonapi
# OR npm install --save vue-jsonapi
Install the plugin into Vue
import Vue from 'vue'
import Jsonapi from 'vue-jsonapi'
Vue.use(Jsonapi, {
client: axios.create()
})