Commit Graph

1614 Commits

Author SHA1 Message Date
Max Rice a13a95e452 Update API resource classes
Change method naming to snake_case and implement initial
`current_user_can()` permission checks
2013-11-10 19:29:36 -05:00
Max Rice 9c7791e3d8 urldecode parameters before passing to resource methods 2013-11-10 18:29:37 -05:00
Max Rice 1f5db98046 Add date created filtering to /customers endpoint 2013-11-10 18:28:58 -05:00
Max Rice 23e6b22cfd Rename API base resource class 2013-11-09 16:20:23 -05:00
Max Rice c3fa52b0b5 Update API classes to use new WC_API_Server class 2013-11-06 01:54:19 -05:00
Max Rice ed6de29bfc Add new WC_API_Server class
Based on WP_JSON_Server, this class add response handling based on
endpoint suffixes (.json or .xml) or the ACCEPT header. It also removes
some unneeded functionality and renames filters so as to not conflict
with users who may have WP-API installed already. Finally, instead of
no authentication required by default, authentication is always
required unless specifically disabled via filters.
2013-11-06 01:53:07 -05:00
Max Rice 8637da63c0 Add REST API XML request/response handler stub 2013-11-06 01:49:51 -05:00
Max Rice 165d0e65ea Add REST API JSON request/response handler 2013-11-06 01:49:37 -05:00
Max Rice 58c57eb6f1 Add REST API request/response interface 2013-11-06 01:49:08 -05:00
Max Rice e219585974 Add initial versions of REST API resource classes 2013-11-04 01:36:31 -05:00
Max Rice 27163ceec0 REST API base class tweaks 2013-11-04 01:36:16 -05:00
Max Rice 25407c284e Trash posts by default instead of permanently deleting 2013-11-04 01:34:53 -05:00
Max Rice 7caffcd8f2 Add REST API base class 2013-11-03 20:06:36 -05:00
Max Rice 45fa450760 Add REST API authentication class 2013-11-03 20:06:28 -05:00