Commit Graph

126 Commits

Author SHA1 Message Date
Justin Shreve e761edd8d9 Make sure to load abstract-wc-rest-shipping-zones-controller.php 2016-08-02 10:10:47 -07:00
Jeff Stieler 510229e13d Add initial controller for Shipping Zone Methods endpoint, with schema definition. 2016-08-02 10:10:47 -07:00
Jeff Stieler 56ef442624 Move common methods to an abstract base shipping zones controller class. 2016-08-02 10:10:47 -07:00
Jeff Stieler 7a142af215 Initial Shipping Zone Locations endpoint controller, with schema. 2016-08-02 10:10:47 -07:00
Jeff Stieler 0de6f42b51 Create GET route for shipping zones, handling case where shipping calculations are disabled. 2016-08-02 10:10:47 -07:00
Justin Shreve 72f01d9c0a Merge pull request #11548 from woothemes/system-status-api
Add system status info REST API endpoint
2016-08-02 10:08:45 -07:00
Mike Jolley 1f664e7c5e Check for class not version 2016-08-01 11:42:03 +01:00
Justin Shreve 041b5745b4 Finish system status tests 2016-07-27 12:19:14 -07:00
Justin Shreve e255602d91 System status controller 2016-07-27 10:29:10 -07:00
Mike Jolley 66c61eebc8 Define full path for includes
Closes #11087
2016-07-27 11:58:43 +01:00
Justin Shreve 1d4615aee3 Fix setting class case. REST should be uppercase. 2016-07-26 14:33:55 -07:00
Justin Shreve 838c27438e Merge branch 'settings-api' of https://github.com/woothemes/woocommerce into settings-api 2016-07-26 11:11:09 -07:00
Justin Shreve 02915e6056 Rename helper class from 'legacy' to be more descriptive of whats happening. Registering wp-admin settings to the REST API. 2016-07-26 11:08:29 -07:00
Jeff Stieler 1a95055303 Call register_legacy_settings() directly instead of adding another hook. 2016-07-26 10:24:15 -07:00
Jeff Stieler 383b5b2944 Move legacy setting API registration hooks into main WC_API class. 2016-07-26 10:24:15 -07:00
Jeff Stieler d77373227a Remove now defunct WC_REST_Settings_API_Controller class. 2016-07-26 10:24:15 -07:00
Jeff Stieler 2fcb15d9cf Rename WC_Rest_Settings_Groups_Controller to WC_Rest_Settings_Controller. 2016-07-26 10:24:15 -07:00
Jeff Stieler f168f356bc Rename WC_Rest_Settings_Controller to WC_Rest_Settings_Options_Controller. 2016-07-26 10:24:15 -07:00
Claudio Sanches 7b78a6d9a7 Small tweaks to make it follow the REST API standards 2016-07-26 10:24:15 -07:00
Justin Shreve fa27f277a1 Split settings and groups controllers into two separate files. 2016-07-26 10:24:15 -07:00
Justin Shreve a9bb988873 Initial /settings API controller and /settings/locations route. Loads the WP-API and registers our namespace temporarily until WP-API is loaded by WC core. 2016-07-26 10:24:15 -07:00
Jeff Stieler 35f0d77e7d Call register_legacy_settings() directly instead of adding another hook. 2016-07-19 10:41:22 -07:00
Jeff Stieler 18c8d12eaa Move legacy setting API registration hooks into main WC_API class. 2016-07-19 10:41:22 -07:00
Jeff Stieler d8fec21147 Remove now defunct WC_REST_Settings_API_Controller class. 2016-07-19 10:41:22 -07:00
Jeff Stieler 6f36179fe6 Rename WC_Rest_Settings_Groups_Controller to WC_Rest_Settings_Controller. 2016-07-19 10:41:22 -07:00
Jeff Stieler f56a79c74b Rename WC_Rest_Settings_Controller to WC_Rest_Settings_Options_Controller. 2016-07-19 10:41:22 -07:00
Claudio Sanches cd01e71c3f Small tweaks to make it follow the REST API standards 2016-07-19 10:41:22 -07:00
Justin Shreve 170e2a1346 Split settings and groups controllers into two separate files. 2016-07-19 10:41:22 -07:00
Justin Shreve fc076eb57e Initial /settings API controller and /settings/locations route. Loads the WP-API and registers our namespace temporarily until WP-API is loaded by WC core. 2016-07-19 10:41:22 -07:00
Mike Jolley 1185333b56 Move legacy API code into WC_Legacy_API
@claudiosmweb to keep legacy api separated from the new REST API code.
2016-06-07 11:03:16 +01:00
Mike Jolley 730019ef18 scrutinizer best practice 2016-06-06 19:39:23 +01:00
Claudio Sanches dac471273f Merge pull request #10884 from woothemes/wp-api-batch
[REST API] Batch create, update and delete items
2016-05-11 16:22:54 -03:00
Claudio Sanches 26fd51ac79 [REST API] Stop load legacy API classes into the WP REST API, closes #10887 2016-05-10 13:26:39 -03:00
Claudio Sanches 068b77cc43 Created WC_REST_Controller to allow batch create, update and delete items 2016-05-09 18:16:48 -03:00
Claudio Sanches b8dd156891 Added endpoint to list and get product reviews 2016-03-30 20:50:06 -03:00
Claudio Sanches f78a2ec68b Added endpoint to list customer downloads 2016-03-30 18:12:34 -03:00
Claudio Sanches 7676e85640 Fixed vendor wp rest functions file name 2016-03-30 14:55:43 -03:00
Claudio Sanches 242b362020 Fixed file names 2016-03-28 09:25:50 -03:00
Claudio Sanches 194b40ecb9 Created exception class 2016-03-28 09:22:44 -03:00
Claudio Sanches eb5db423cc Handle basic authentication on REST API 2016-03-18 06:53:09 -03:00
Claudio Sanches f3f16944ca Created webhook deliveries class 2016-03-15 17:54:06 -03:00
Claudio Sanches 8dc92eb284 Added methods to get and list webhooks 2016-03-15 16:56:55 -03:00
Claudio Sanches ea9fed64ad Webhooks 2016-03-12 05:15:30 -03:00
Claudio Sanches 4d633440ef Top sellers endpoint 2016-03-09 23:51:25 -03:00
Claudio Sanches a1a56d5dbd Created reports/sales endpoint 2016-03-09 23:19:36 -03:00
Claudio Sanches 9f07be5271 Make easy to extend our rest controllers 2016-03-07 15:36:17 -03:00
Claudio Sanches 77c968e590 Included wp-api functions 2016-02-23 12:15:25 -03:00
Claudio Sanches 43a5f6f842 Created abstract classes for posts and terms 2016-02-22 16:43:52 -03:00
Claudio Sanches c7045ce881 Load WP REST API endpoints only for WP 4.4 or later 2016-02-17 17:40:41 -02:00
Claudio Sanches 7a1f1ff43c Added initial REST API controllers 2016-02-17 17:29:09 -02:00
Claudio Sanches e926c54d29 Created WC_REST_Controller and structure to load WooCommerce controllers 2016-02-16 18:59:18 -02:00
Claudio Sanches 2ae38250dd Deprecated our API in favor of WP API 2016-02-16 18:22:12 -02:00
Fredrik Forsmo 809e0a382b Improve docblock comments in WC_API class
* Added type to missing property comment
* Added missing type to param tag for `add_query_vars`
* Added better comments for properties
2016-01-06 15:35:35 +01:00
Claudio Sanches f4168e8fcc Updated API version 2015-12-07 14:54:14 -02:00
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Claudio Sanches 07836ae277 [API] Include taxes endpoint 2015-10-07 16:37:53 -03:00
Justin Shreve ade8db4f21 Load v2 files when v2 of the API is requested. Add rewrite support for v3 and load the 'default' API files for those requests. 2015-06-19 13:42:10 +00:00
Mike Jolley 716302d76e Revised API endpoint
- Trigger an generic action on all API requests
- Set status header based on whether or not the API endpoint is
actually valid/being listened for
- No cache headers
- No longer try to init unknown class
- Init gateways before the request so their listeners are registered

cc @claudiosmweb
2015-06-05 14:36:50 +01:00
Claudio Sanches dd8b2f6007 [API] Deprecated the products/sku/<sku> endpoint, closes #7592 2015-04-27 17:49:35 -03:00
Claudio Sanches c37c1bd9fa [API] Updated the version to 2.1.0 2015-04-27 16:50:07 -03:00
Mike Jolley 17ca08c020 add endpoints on install 2015-03-20 14:20:12 +00:00
Mike Jolley caff5c3a66 Remove dead var api_class 2015-02-03 14:44:57 +00:00
Mike Jolley 725d5e28d8 Additional tweaks to @b2c573ed8a04a8d425a73e018a450179514cbdc7
- Load API with other includes
- Register activation hook early
- Include autoloader early

cc @claudiosmweb
2015-01-28 17:50:58 +00:00
shivapoudel 96df6bd961 Absolute path fix for WC_API class 2014-09-21 00:27:10 +05:45
Mike Jolley c4ef86d44e scrutinizer patches 2014-09-08 00:37:55 +01:00
Max Rice 9536d98ade Add webhooks REST API endpoint
Part of #5564
2014-07-30 16:22:58 -04:00
Mike Jolley cdc0efed75 Merge pull request #5843 from maxrice/feature-orders-endpoint-issue-4160
Create/Edit/Delete orders via the REST API
2014-07-28 09:18:49 +01:00
Max Rice c9342d6344 Add WC_API_Exception class
Part of #4160
2014-07-27 23:20:48 -04:00
Max Rice a4cb198cb9 implement separate handlers for v1/v2 REST API requests 2014-07-12 17:51:08 -04:00
Max Rice a4b3860376 Add action for plugins to load other API resources
Part of #4055
2013-11-23 13:27:47 -05:00
Max Rice 23e6b22cfd Rename API base resource class 2013-11-09 16:20:23 -05:00
Max Rice 6c3eb169db Define and use WC_API::VERSION constant for endpoint versioning 2013-11-06 01:56:38 -05:00
Max Rice 0a6b268024 Update core WC_API class to use new WC_API_Server class 2013-11-06 01:56:11 -05:00
Max Rice 1d113b3e39 Add REST API endpoints/methods to WC API class 2013-11-03 19:29:45 -05:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00