|
58 | 58 | | |
59 | 59 | | Set as many config entries as needed. Any methods not set will use the default 'rest_auth' config value. |
60 | 60 | | |
61 | | -| example: |
62 | | -| |
| 61 | +| example: |
| 62 | +| |
63 | 63 | | $config['auth_override_class_method']['deals']['view'] = 'none'; |
64 | 64 | | $config['auth_override_class_method']['deals']['insert'] = 'digest'; |
65 | | -| $config['auth_override_class_method']['accounts']['user'] = 'basic'; |
| 65 | +| $config['auth_override_class_method']['accounts']['user'] = 'basic'; |
66 | 66 | | |
67 | 67 | | Here 'deals' and 'accounts' are controller names, 'view', 'insert' and 'user' are methods within. (NOTE: leave off the '_get' or '_post' from the end of the method name) |
68 | | -| Acceptable values are; 'none', 'digest' and 'basic'. |
| 68 | +| Acceptable values are; 'none', 'digest' and 'basic'. |
69 | 69 | | |
70 | 70 | */ |
71 | 71 | // $config['auth_override_class_method']['deals']['view'] = 'none'; |
|
215 | 215 | `id` int(11) NOT NULL AUTO_INCREMENT, |
216 | 216 | `uri` varchar(255) NOT NULL, |
217 | 217 | `method` varchar(6) NOT NULL, |
218 | | - `params` text NOT NULL, |
| 218 | + `params` text DEFAULT NULL, |
219 | 219 | `api_key` varchar(40) NOT NULL, |
220 | | - `ip_address` varchar(15) NOT NULL, |
| 220 | + `ip_address` varchar(45) NOT NULL, |
221 | 221 | `time` int(11) NOT NULL, |
222 | 222 | `authorized` tinyint(1) NOT NULL, |
223 | 223 | PRIMARY KEY (`id`) |
|
279 | 279 | | REST AJAX Only |
280 | 280 | |-------------------------------------------------------------------------- |
281 | 281 | | |
282 | | -| Set to TRUE to only allow AJAX requests. If TRUE and the request is not |
283 | | -| coming from AJAX, a 505 response with the error message "Only AJAX |
284 | | -| requests are accepted." will be returned. This is good for production |
285 | | -| environments. Set to FALSE to also accept HTTP requests. |
| 282 | +| Set to TRUE to only allow AJAX requests. If TRUE and the request is not |
| 283 | +| coming from AJAX, a 505 response with the error message "Only AJAX |
| 284 | +| requests are accepted." will be returned. This is good for production |
| 285 | +| environments. Set to FALSE to also accept HTTP requests. |
286 | 286 | | |
287 | 287 | | FALSE |
288 | 288 | | |
|
0 commit comments