Commit Graph

25 Commits

Author SHA1 Message Date
Max Rice 0e127a3e10 Update REST API documentation link 2014-04-29 14:59:12 +01:00
Gerhard 2fa9c2488e Add permalinks_enabled data to API index 2014-02-27 15:41:23 +01:00
Max Rice 5e48e5d682 Return request relative link headers, fixes #4925
When WordPress is running inside of a sub-directory,
get_woocommerce_api_url() returns the domain along with the
sub-directory path, which results in a duplicate path when the API
request string is added. This commit fixes this by fetching only the
home host and adding the request path to it. set_url_scheme() is used
to set the scheme to either http or https based on the request itself
instead of basing it on whether force_ssl_checkout is enabled or not.
2014-02-25 01:02:38 -05:00
Mike Jolley 1f295c9c69 Unify textdomains Closes #4814 2014-02-17 14:27:08 +01:00
Gregory K a7b3972ab9 sort_callback_params() phpdoc fix 2014-02-11 15:49:41 +01:00
Gerhard a5acde8bbd Add WooCommerce version to API index route 2013-12-10 12:24:53 +02:00
Max Rice 8389ff23e5 Fix duplicate "Link:" content with pagination link headers 2013-12-08 17:38:27 -05:00
Max Rice 1a9933cd88 Fix authentication error message typos 2013-12-08 17:37:55 -05:00
Max Rice 898adbb32d Change money_format to currency_format for API index 2013-12-08 17:37:30 -05:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Max Rice 2af47c6699 Fix incorrect total results number for pagination headers 2013-11-23 16:37:28 -05:00
Max Rice a0cb0cbb4e Remove schema link 2013-11-23 14:41:21 -05:00
Max Rice d7c77d1ab7 API: Add XML generation
This commit completes the XML response handler and adjusts the output
format for all resources to include a top-level property that encloses
the response. This is more consistent with the multi-resource (e.g. GET
/orders) response.

Part of #4165
2013-11-22 03:41:32 -05:00
Scott Basgaard 922fa990a5 esc_attr() all the things. 2013-11-20 20:11:59 +01:00
Gerhard 970ae40004 Remove function and use global woocommerce_timezone_string function instead 2013-11-20 16:16:04 +02:00
Gerhard 4afff14de1 Remove unused variable from function 2013-11-20 07:57:48 +02:00
Gerhard df5929093d REST API - Fix fatal error due to missing get_timezone function 2013-11-20 07:55:28 +02:00
Max Rice 001ce0fc3e Add option to enable/disable API
Part of #4055
2013-11-19 03:01:46 -05:00
Max Rice 490dc758a9 Update pagination args/headers
Part of #4055
2013-11-18 21:06:45 -05:00
Max Rice 87ff36db12 Properly handle datetimes
Part of #4055
2013-11-18 16:47:38 -05:00
Max Rice 5ab8e085ad Update /coupons/code endpoint
Part of #4055
2013-11-14 13:56:05 -05:00
Max Rice ec55e43c24 Update API index response
Part of #4055
2013-11-14 13:55:45 -05:00
Max Rice 00c65b9cc3 Add site timezone to API index 2013-11-10 19:30:59 -05:00
Max Rice 9c7791e3d8 urldecode parameters before passing to resource methods 2013-11-10 18:29:37 -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