Commit Graph

36 Commits

Author SHA1 Message Date
claudiosmweb 8eeb6fc204 Removed more some unused code 2014-11-19 22:43:09 -02:00
claudiosmweb f34cead914 Removed old code in favor of wc_tax_enabled() and wc_prices_include_tax() 2014-11-18 14:45:29 -02:00
shivapoudel e6f6bcf368 Absolute path fix for REST API v2 2014-09-21 01:09:20 +05:45
Max Rice 6ccc10b891 Update API docs to Apiary 2014-09-08 18:09:10 -04:00
Max Rice ec0f92878e REST API: Add order statuses endpoint 2014-08-30 15:05:31 -04:00
Max Rice 8ff7202c5c Remove XML response from v2 REST API 2014-07-28 12:16:34 -04:00
Mike Jolley 08996096f2 Merge pull request #5033 from claudiosmweb/customers_api_4162
Customers API / Methods PUT/POST/DELETE
2014-05-15 12:58:23 +01:00
Mike Jolley ddafd636f2 Merge pull request #5044 from kloon/coupons_api_put_post_delete
Coupons API PUT POST DELETE
2014-05-15 12:57:08 +01:00
Max Rice fe5d757970 Update REST API documentation link 2014-04-10 12:27:27 -04:00
Gerhard 1b1c13349b Do not url decode the body data, just add it. See https://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/oauth-bodyhash.html 2014-03-06 08:42:05 +02:00
claudiosmweb 14b63541a3 Added the WC_API_Server::urldecode_deep() method
To make it possible to get a more complex data structure.
Example:

array( 'data' => array( 'key' => 'value' ), 'data2' => array( 'key' => 'value' ) )
2014-03-03 21:09:11 -03:00
Mike Jolley 439b982b48 Merge pull request #4954 from kloon/tweak_rest_api_index_pretty_permalinks
Add permalinks_enabled data to API index
2014-02-27 12:03:19 +00:00
Gerhard dc65c525d0 Add permalinks_enabled data to API index 2014-02-26 07:50:51 +02:00
Max Rice 7b67161d2f 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 10:24:36 +01:00
Mike Jolley c0c21c8364 Unify textdomains Closes #4814 2014-02-17 13:14:45 +00:00
Gregory K d401432428 sort_callback_params() phpdoc fix 2014-02-11 09:22:43 -05: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