]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('GeoCon.store.Legislators', {\r |
2 | extend : 'Ext.data.Store',\r | |
3 | \r | |
4 | config: {\r | |
5 | model: 'GeoCon.model.Legislator',\r | |
6 | groupField: 'fullTitle',\r | |
7 | \r | |
8 | proxy: {\r | |
9 | type: 'jsonp',\r | |
10 | url: 'http://congress.api.sunlightfoundation.com/legislators',\r | |
11 | \r | |
12 | // The following must be set to disable extra parameters being sent to the API, which breaks it\r | |
13 | noCache: false,\r | |
14 | startParam: '',\r | |
15 | pageParam: '',\r | |
16 | limitParam: '',\r | |
17 | \r | |
18 | extraParams: {\r | |
19 | apikey: '8a341f85c657435989e75c9a83294762',\r | |
20 | per_page: 'all'\r | |
21 | },\r | |
22 | reader: {\r | |
23 | rootProperty: 'results'\r | |
24 | }\r | |
25 | }\r | |
26 | }\r | |
27 | });\r |