This is a JSON API adapter for Ember Data 1.0 beta 3, that extends the built-in REST adapter. Please note that Ember Data and JSON API are both works in progress, use with caution.
- json_api_adapter.js (5.0 kb)
- json_api_adapter.min.js (2.3 kb)
App.ApplicationAdapter = DS.JsonApiAdapter;
You will need grunt-cli
installed on your system: npm install -g grunt-cli
. Then run:
$ npm install && grunt
The output files go in the dist
folder.
- This adapter has preliminary support for URL-style JSON API. It currently only serializes one route per type, so if you have multiple ways to get a resource, it will not work as expected.