This RFC restores the behavior of the ds-improved-ajax
feature flag for ember-data
.
ember-data
has decided to pursue another direction instead of this proposal,
and this addon is a temporary offering that will be deprecated once ember-data
releases an alternative.
This feature allowed users to customize how a request is formed by overwriting
methodForRequest
,urlForRequest
,headersForRequest
andbodyForRequest
- in adapters extending from
DS.RESTAdapter
andDS.JSONAPIAdapter
.
ember install ds-improved-ajax
import RESTAdapter from 'ds-improved-ajax/adapters/rest';
import JSONAPIAdapter from 'ds-improved-ajax/adapters/json-api';
git clone <repository-url>
cd ds-improved-ajax
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"npm test
– Runsember try:each
to test your addon against multiple Ember versions
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.