Commit Graph

65 Commits

Author SHA1 Message Date
Max Rice 233a0a706d API: Add customer count to each period for sales report
Part of #4055
2014-01-20 21:41:52 -05:00
Max Rice 7f677300eb API: Add feature image src to product response 2014-01-13 22:14:20 -05:00
Max Rice 8b6145691c API: Add item price to order line items response 2014-01-13 22:14:08 -05:00
Max Rice b6dbaebe01 API: Add subtotal to orders response 2014-01-13 22:13:48 -05:00
Max Rice 497ec8186e Fix remove filter typo 2014-01-13 22:13:37 -05:00
Mike Jolley f504243b56 Update timestamp check Closes #4409 2014-01-08 13:40:06 +00:00
Coen Jacobs e9ed514d8e Merge pull request #4329 from kloon/tweak_rest_api_add_wc_version
Add WooCommerce version to API index route
2013-12-12 01:32:55 -08:00
Max Rice 2b0a75cbd6 Fix warning when accessing coupons created in pre-2.1 installs 2013-12-10 17:31:41 -05:00
Gerhard a5acde8bbd Add WooCommerce version to API index route 2013-12-10 12:24:53 +02:00
Coen Jacobs 962269cdbd Merge pull request #4318 from maxrice/rest-api-tweaks
REST API Tweaks
2013-12-09 06:34:04 -08: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
Gerhard 8e2bc1cebc remove harded api reference, use WooCommerce_api_url instead 2013-12-06 16:57:44 +02:00
Gerhard 5b27f37c23 Fix issue where oAuth signature is wrong when running site from a subfolder #4055 2013-12-06 15:07:42 +02:00
Ryan McCue ff6f2e070e Use correct variable for OAuth parameter check 2013-11-26 11:19:00 +10:00
Coen Jacobs 4afbd0b556 Merge branch 'function-call-refactor'
Conflicts:
	includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00
Mike Jolley 3408965b8a Product functions 2013-11-25 14:01:38 +00:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Coen Jacobs 1663eafb68 Customer functions woocommerce to wc refactor 2013-11-25 13:52:53 +01:00
Coen Jacobs 8054316fa6 Merge pull request #4185 from maxrice/rest-api-fixes-issue-4055
Various fixes for REST API
2013-11-24 12:58:25 -08:00
Max Rice c00e2d0f8c Add total customers count to sales report
Part of #4055
2013-11-23 17:27:24 -05:00
Max Rice 017e7cee1d Add permissions for count endpoints 2013-11-23 17:11:16 -05:00
Max Rice 2af47c6699 Fix incorrect total results number for pagination headers 2013-11-23 16:37:28 -05:00
Max Rice 0be58b3390 Normalize response data types
Part of #4055
2013-11-23 16:36:56 -05:00
Max Rice 20fb7e771f Add total sales property to products response 2013-11-23 15:17:14 -05:00
Max Rice 3bc8fae631 Remove PUT/DELETE endpoints
Will be implemented in 2.2

Part of #4055
2013-11-23 15:01:53 -05:00
Max Rice a0cb0cbb4e Remove schema link 2013-11-23 14:41:21 -05:00
Max Rice 3f07b8be77 Specify 2 decimal places for woocommerce_format_decimal()
Part of #4055
2013-11-23 14:40:31 -05:00
Max Rice 5bb8c9daef Fix permissions typo
Part of #4055
2013-11-23 14:32:22 -05:00
Max Rice 38be2ee7a4 Perform core authentication at 0 priority
Makes it easier for plugins to override the core API authentication

Part of #4055
2013-11-23 13:28:26 -05:00
Max Rice deac0be31b Implement order status update endpoint
Closes #4161
2013-11-23 12:59: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 ef22f03275 Add API key-specific permission check
Part of #4055
2013-11-19 03:04:00 -05:00
Max Rice 61fb0f760a Update authentication to use new API key meta names
Part of #4055
2013-11-19 03:03:39 -05:00
Max Rice 001ce0fc3e Add option to enable/disable API
Part of #4055
2013-11-19 03:01:46 -05:00
Max Rice 48e8363db0 Add meta to resource responses
Part of #4055
2013-11-18 22:58:10 -05:00
Max Rice 3130369325 Update filter_response_fields() to support sub-field inclusion
Part of #4055
2013-11-18 21:59:13 -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 c1854b26b9 Implement GET /reports/sales endpoint
Part of #4055
2013-11-15 00:21:19 -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 709f0da16f Improve response filters
Part of #4055
2013-11-14 12:48:20 -05:00
Max Rice 451bc07339 Tweak GET /order response
Part of #4055
2013-11-14 12:42:42 -05:00
Max Rice 674ea42012 Implement GET endpoint for products and reviews
Part of #4055
2013-11-14 12:40:35 -05:00