Commit Graph

26 Commits

Author SHA1 Message Date
Claudio Sanches 2c476f60ce Included REST API feature plugin endpoints and changes 2018-05-17 16:14:38 +01:00
Claudio Sanches f02e4e3088 Initial REST API v3 files 2018-05-17 11:44:46 +01:00
Claudio Sanches f0d37ff4f5 Fixed PHPCS violations on REST API 2018-03-06 15:04:58 -03:00
Claudio Sanches e8017e985b Fixed coding standards issues with PHPCBF 2018-03-05 17:53:06 -03:00
Mike Jolley af8e892f97 Merge pull request #13759 from woocommerce/fix/rest-api-settings-links
[REST API] Fixed links of settings endpoint
2017-03-24 10:33:16 +00:00
Claudio Sanches 7381b008e0 [REST API] Fixed links for settings endpoint
Do not allow embed and updated the key to reflect the items from the endpoint response
2017-03-24 01:56:50 -03:00
Claudio Sanches e33235ebf3 [REST API] Fixed settings schema.
Included context and readonly for all items.

And removed sanitize_callback used only in write context
2017-03-23 18:15:30 -03:00
Claudio Sanches 8184757e8a Improved descrition of items in schema 2017-03-22 10:51:52 -03:00
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Konstantinos Kouratoras f77b03ef94 Add missing trailing punctuation
Trailing punctuation is missing, causing duplication of the same text in translation, although it exists in another file:
https://github.com/woocommerce/woocommerce/blob/master/includes/api/class-wc-rest-settings-options-controller.php#L482
2017-03-10 17:01:47 +02:00
Claudio Sanches e9f2e75d53 Fixed coding standards and file header 2017-02-11 12:51:13 -02:00
Claudio Sanches 4352484ed7 REST API v2 2017-02-09 15:06:13 -02:00
Justin Shreve 49676d1781 Hook up email settings to the API
Add support for option_key when registering settings, so we can also manage settings that are stored in the array of a single option.
2016-09-08 15:20:15 -07:00
Justin Shreve 1d4615aee3 Fix setting class case. REST should be uppercase. 2016-07-26 14:33:55 -07:00
Justin Shreve 226fdb870b Misc cleanup of descriptions and some error strings. 2016-07-26 10:24:15 -07:00
Jeff Stieler 8ff799562b Remove WC_REST_Settings_Controller dependency on WC_REST_Settings_API_Controller. 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
Jeff Stieler cca2a0ff5e Reuse WC Admin Setting’s save_fields() instead of duplicating code for sanitizing saved values. 2016-07-26 10:24:15 -07:00
Jeff Stieler f3e21123d1 Use WC Admin Settings’s get_option() in REST Settings controller instead of duplicating code. 2016-07-26 10:24:15 -07:00
Jeff Stieler 24014a5d04 Move bulk settings updating to the Settings controller, following existing batch endpoint patterns. 2016-07-26 10:24:15 -07:00
Jeff Stieler 7c119ac268 Add _links to /settings/<group> and /settings/<group>/<setting> responses. 2016-07-26 10:24:15 -07:00
Jeff Stieler b2c628f0d8 Move settings group endpoint to Settings controller and only return settings-schema’d items. 2016-07-26 10:24:15 -07:00
Jeff Stieler 519be1c519 Add Settings controller getter method for all group settings. 2016-07-26 10:24:15 -07:00
Jeff Stieler b69c9814af Match parent signature of prepare_item_for_response(), add getter method for settings. 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