VueJS is Awesome

Vue-Chimera

Easiest way to interact with RESTful APIs


Simple GET

{{ $chimera.simple.data.title }} Loading...

resources: {
    myResource: '/api/v1/posts/1'
}
        

Reactive GET

Post id:

{{ $chimera.reactive.data.title }} Loading...

resources: {
    myResource: () => `/api/v1/posts/${this.postId}`,
}
        

Simple GET with auto refresh interval

Current UTC time: Last loaded: {{ $chimera.time.lastLoaded }} Refreshing...

resources: {
    myResource: '/api/v1/posts/1',
    interval: 2000
}
        

POST Without prefetch

Successfully created: {{ $chimera.prefetch.data.name }} {{ $chimera.prefetch.data.job }}

Loading...
resources: {
    myResource: '/api/v1/posts/1',
    prefetch: false
}