File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 22
33## js-data-http
44
5- http adapter for js-data.
6-
7- ## Website
8- [ js-data.io/js-data-http] ( http://www.js-data.io/js-data-http )
5+ http adapter for [ js-data] ( http://www.js-data.io/js-data ) .
96
107## API Documentation
118[ DSHttpAdapter] ( https://github.com/js-data/js-data/wiki/DSHttpAdapter )
@@ -27,6 +24,19 @@ http adapter for js-data.
2724## Quick Start
2825` bower install --save js-data js-data-http ` or ` npm install --save js-data js-data-http ` .
2926
27+ Load ` js-data-http.js ` after ` js-data.js ` .
28+
29+ ``` js
30+ var adapter = new DSHttpAdapter ();
31+
32+ var store = new JSData.DS ();
33+
34+ store .defaults .DSHttpAdapter = adapter;
35+ store .defaults .defaultAdapter = ' DSHttpAdapter' ;
36+
37+ // "store" will now use the http adapter for all async operations
38+ ```
39+
3040## Changelog
3141[ CHANGELOG.md] ( https://github.com/js-data/js-data-http/blob/master/CHANGELOG.md )
3242
You can’t perform that action at this time.
0 commit comments