Mike Jolley
eea6867ac9
Allow variation image to be unset
...
@claudiosanches is this correct way?
Fixes #14008
2017-04-06 10:41:09 +01:00
Claudio Sanches
4bb2c070ae
Merge pull request #13900 from woocommerce/fix/rest-api-remove-extra-taxes-params
...
[REST API] Removed extra taxes params.
2017-04-05 21:18:09 -03:00
Claudio Sanches
87199d0627
[REST API] Fixed attributes while trying to save variations
...
Closes #13936
2017-04-05 17:03:05 -03:00
Claudio Sanches
67274e8c2c
Make sure that ID exists
2017-04-05 14:23:50 -03:00
Mike Jolley
811d59feec
Fallback to home URL if no shop page is set for system status security check.
...
Fixes #13921
2017-04-05 10:03:41 +01:00
Claudio Sanches
c88941a424
Removed extra taxes params.
...
Search, include and exclude are not handled by the REST API.
2017-04-04 14:54:01 -03:00
Mike Jolley
31cd2dcb90
Merge pull request #13853 from woocommerce/crud-security-hardening
...
CRUD security/hardening
2017-04-03 11:09:38 +01:00
Mike Jolley
da86e02331
Merge pull request #13872 from woocommerce/fix/missing-rest-api-v2-webhooks-settings
...
Include missing REST API v2 from webhooks options.
2017-04-03 09:51:31 +01:00
Claudio Sanches
984edf07d2
Missing period
2017-04-02 03:27:58 -03:00
Claudio Sanches
5b51b915f6
Fixed a typo
2017-04-02 03:24:52 -03:00
Claudio Sanches
4922e17876
Include missing REST API v2 from webhooks options.
2017-04-02 03:07:09 -03:00
Mike Jolley
14802a0307
Remove double unserialization
2017-03-31 12:10:20 +01:00
Claudio Sanches
be8036869e
[REST API] Ignore 0 category while querying products
2017-03-30 13:43:59 -03:00
Claudio Sanches
afccb22f58
[REST API] Fixed all products v1 query parameters
2017-03-28 14:44:11 -03:00
Claudio Sanches
54c353d67f
[REST API] Fixed taxonomies query arguments.
...
Fixed the follow error:
PHP Warning: explode() expects parameter 2 to be string, array given in
includes/api/v1/class-wc-rest-products-controller.php on line 156
Error caused since terms are sanitized by wp_parse_id_list() that
already creates an array.
Closes #13790
2017-03-28 14:34:41 -03:00
Mike Jolley
ca8fafdd36
Hide enabled/description
2017-03-24 13:27:47 +00:00
Mike Jolley
53a7d54253
Update settings once
2017-03-24 13:22:09 +00:00
Mike Jolley
8b4ce8460a
Merge pull request #13757 from woocommerce/fix/rest-api/shipping-zones-methods-schema
...
[REST API] Properly handle required items of shipping zone methods
2017-03-24 10:39:23 +00:00
Mike Jolley
9af295d618
Merge pull request #13753 from woocommerce/fix/rest-api-shipping-zones-schema
...
[REST API] Fixed shipping zones schema
2017-03-24 10:38:51 +00:00
Mike Jolley
a9f3f9b82c
Merge pull request #13758 from woocommerce/fix/rest-api-system-status-schema
...
[REST API] System status schema fixes
2017-03-24 10:34:11 +00: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
Mike Jolley
803786ceeb
Merge pull request #13755 from woocommerce/fix/shipping-zone-locations-schema
...
[REST API] Fixed shipping zone locations schema
2017-03-24 10:27:52 +00:00
Mike Jolley
285a49b7e0
Merge pull request #13747 from woocommerce/fix/rest-api-settings-schema
...
[REST API] Fixed settings schema.
2017-03-24 10:26:59 +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
00b9f636a8
Fixed description of items in system status schema
2017-03-24 00:48:41 -03:00
Claudio Sanches
bfbd45cf85
[REST API] System status schema items are all view context only
2017-03-24 00:43:46 -03:00
Claudio Sanches
5cc246b5cb
[REST API] All items from system status endpoint should be readonly
2017-03-24 00:41:39 -03:00
Claudio Sanches
3ca1d946d9
[REST API] Properly handle required items of shipping zone methods
2017-03-23 22:19:16 -03:00
Claudio Sanches
7a671ab8a5
[REST API] Fixed shipping zone locations schema
...
This also fix improper sanitization and validation of the items.
2017-03-23 21:44:46 -03:00
Claudio Sanches
8f3f313eff
Fixed coding standards
2017-03-23 20:56:02 -03:00
Claudio Sanches
85494e5d86
[REST API] Fixed shipping zones schema
...
"name" is only required while creating a new zone.
"order" do request to define "required" and is already sanitized by
"integer" type.
2017-03-23 20:51:21 -03:00
Claudio Sanches
b1023c23c6
Fixed setting options endpoint tests
2017-03-23 20:45:22 -03:00
Claudio Sanches
c24882f5d2
Apply change on rest_base to WC_REST_Setting_Options_Controller methods
2017-03-23 20:05:19 -03:00
Claudio Sanches
fb80482d73
Fixed rest_base
2017-03-23 19:56:56 -03:00
Claudio Sanches
0a7076744e
[REST API] Fixed settings/options rest_base
2017-03-23 19:52:35 -03:00
Claudio Sanches
39e1fd9fc3
Merge pull request #13745 from woocommerce/fix/rest-api-name-convention
...
[REST API] Fixed file name convention
2017-03-23 19:50:51 -03:00
Claudio Sanches
94cb95c000
Merge pull request #13746 from woocommerce/fix/rest-api-shipping-methods-schema
...
[REST API] All items in shipping_methods endpoint are readonly
2017-03-23 19:50:39 -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
f65cbdbfa4
[REST API] All items in shipping_methods endpoint are readonly
2017-03-23 17:59:50 -03:00
Claudio Sanches
44319e20f7
[REST API] Fixed file name convention
2017-03-23 17:48:37 -03:00
Claudio Sanches
b8faa2197c
[REST API] Fixed default_attributes in legacy REST API
2017-03-23 17:23:12 -03:00
Claudio Sanches
8371882002
[REST API] Fixed a minor bug that prevents saving default_attributes
2017-03-23 17:19:07 -03:00
Mike Jolley
8a9e55ed33
Merge pull request #13730 from woocommerce/rest-api-fix-variations-image-object
...
[REST API] Handle variation image as object and not array
2017-03-23 11:05:17 +00:00
Mike Jolley
b334af4544
Merge pull request #13732 from woocommerce/rest-api-fix-context
...
[REST API] Fixed context from items in schema
2017-03-23 11:04:50 +00:00
Claudio Sanches
6bc29aa77f
[REST API] Removed deprecated download_type from products v2
2017-03-23 02:32:47 -03:00
Claudio Sanches
1072bea460
[REST API] Fixed variations context for products v2
2017-03-23 02:29:06 -03:00
Claudio Sanches
7dfd62ecfc
[REST API] Fixed download_type context for products v1
2017-03-23 02:28:21 -03:00
Claudio Sanches
39ed5c00cf
[REST API] Fixed refunded_by context in order refunds
2017-03-23 02:27:32 -03:00
Claudio Sanches
5a85e6a6f8
[REST API] Handle variation image as object and not array
2017-03-23 00:38:52 -03:00
Mike Jolley
8efb45312d
Merge pull request #13726 from woocommerce/rest-api-product-review-gmt
...
[REST API] Fixed timezone date and included GMT date to product reviews
2017-03-22 21:51:34 +00:00
Mike Jolley
7afb1bb427
Merge pull request #13727 from woocommerce/rest-api-webhooks-gmt
...
[REST API] Fixed dates and included GMT dates in webhook endpoints for v2
2017-03-22 21:50:56 +00:00
Mike Jolley
21b1a83624
Merge pull request #13725 from woocommerce/rest-api-product-images-dates
...
[REST API] Include GMT dates for images in schema
2017-03-22 21:44:32 +00:00
Claudio Sanches
c074c9d57b
[REST API] Fixed date and included GMT dates to webhooks
2017-03-22 18:36:15 -03:00
Claudio Sanches
7f8c4b18e1
[REST API] Fixed date and included GMT date for webhook deliveries
2017-03-22 18:34:10 -03:00
Claudio Sanches
73f7a39d09
[REST API] Fixed timezone date and included GMT date to product reviews
2017-03-22 18:28:57 -03:00
Claudio Sanches
0f5e6373e4
[REST API] Include GMT dates for images in schema
2017-03-22 18:23:41 -03:00
Claudio Sanches
dbd2409e03
[REST API] Added timezone and GMT dates in category image
2017-03-22 18:17:53 -03:00
Mike Jolley
a876862bfb
Merge pull request #13693 from woocommerce/orders-refunds-fix-schema
...
Include missing api_refund item to order refunds schema
2017-03-22 15:21:37 +00:00
Mike Jolley
b55f59e975
Merge pull request #13694 from woocommerce/fix-missing-settings-schema
...
Include missing payment gateways and shippingmethods settings schema
2017-03-22 15:21:27 +00:00
Mike Jolley
64905a4d5e
Merge pull request #13692 from woocommerce/order-notes-dates
...
Include date_created_gmt in order notes endpoint
2017-03-22 15:21:19 +00:00
Claudio Sanches
7f7fbcbb5d
Improve order notes schema
2017-03-22 10:53:59 -03:00
Claudio Sanches
8184757e8a
Improved descrition of items in schema
2017-03-22 10:51:52 -03:00
Claudio Sanches
7485b418d7
Improve api_refund description
2017-03-22 10:39:23 -03:00
Mike Jolley
795e6871c0
Merge pull request #13691 from woocommerce/fix-address-labels
...
Improve address labels to help translations
2017-03-21 21:28:16 +00:00
Claudio Sanches
be8ec903b5
Include missing payment gateways and shippingmethods settings schema
2017-03-21 17:47:28 -03:00
Claudio Sanches
d2e1565f97
Fixed undefined variables in payment methods endpoint
2017-03-21 17:34:16 -03:00
Claudio Sanches
3b1da48c8d
Fixed type
2017-03-21 17:07:01 -03:00
Claudio Sanches
461543fdbf
Include missing api_refund item to order refunds schema
2017-03-21 17:04:25 -03:00
Claudio Sanches
ad1dab947e
Include date_created_gmt in order notes endpoint
2017-03-21 16:37:06 -03:00
Claudio Sanches
b528e25759
Improve address labels to help translations
2017-03-21 15:54:23 -03:00
Mike Jolley
83ca80d466
Spacing and rules
2017-03-21 13:14:51 +00:00
Claudio Sanches
ee15a48b7e
Merge pull request #13654 from woocommerce/fix-12804
...
[REST API] Return attribute names instead of slugs
2017-03-20 16:45:50 -03:00
Mike Jolley
94148cf512
Text changes
2017-03-20 16:01:55 +00:00
Mike Jolley
dea59579bb
description changes, and usage of ID's instead of IDs
2017-03-20 15:47:51 +00:00
Claudio Sanches
e3c2c79e00
[REST API] Return attribute names instead of slugs
...
Closes #12804
2017-03-17 17:25:38 -03:00
Mike Jolley
196ba7b770
Ensure we have a product before checking if it exists
...
Fixes #13642
2017-03-17 16:26:26 +00:00
Mike Jolley
8d0a4a3caf
Use correct getter in legacy API for get_discount
...
Fixes #13635
2017-03-17 14:37:19 +00:00
Claudio Sanches
1aa8218b26
Fixed oauth signature replacing spaces by plus sign
...
oAuth signatures are encoded by base64, that can generate plus signs.
See RFC 4648 <http://www.rfc-editor.org/rfc/rfc4648.txt >
By default plus signs in query params are replaced into spaces while
trying to access by super globals like $_GET and $_POST
Closes #13615
2017-03-16 14:23:45 -03:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
eba500d96a
array spacing
2017-03-15 16:08:23 +00:00
Mike Jolley
0f2f1699dc
Spacing
2017-03-15 16:08:10 +00:00
Mike Jolley
d55653a408
Merge branch 'master' into fix-13498
...
# Conflicts:
# includes/class-wc-order.php
# tests/unit-tests/crud/data.php
2017-03-15 15:52:40 +00:00
Mike Jolley
943c507d3f
Merge pull request #13606 from woocommerce/fix-13525-api
...
Fix 13525 api
2017-03-15 15:43:45 +00:00
Claudiu Lodromanean
f151576410
Add missing docblock
2017-03-15 08:32:17 -07:00
Claudiu Lodromanean
0bbce21fd2
Line up whitespace
2017-03-15 08:13:06 -07:00
Claudiu Lodromanean
bbfea35cf0
API tweaks from feedback
2017-03-15 08:10:42 -07:00
Claudiu Lodromanean
4483c292ba
Missed a break
2017-03-14 16:04:34 -07:00
Claudiu Lodromanean
6351bb0c22
Update coupon API
2017-03-14 16:00:15 -07:00
Claudiu Lodromanean
51b7110de2
Update API v2
2017-03-14 14:43:53 -07:00
Claudiu Lodromanean
f4d012cf00
Wrong branch
...
This reverts commit 983896cb8b
.
2017-03-14 13:27:40 -07:00
Claudiu Lodromanean
983896cb8b
Update v2 coupon api
2017-03-14 13:25:45 -07:00
Mike Jolley
071d389c73
Merge pull request #13595 from woocommerce/13527-wp-api
...
Included access_expires_gmt to customer downloads endpoint v2
2017-03-14 19:21:08 +00:00
Claudio Sanches
1b1fc109f7
Included access_expires_gmt to customer downloads endpoint v2
2017-03-14 16:04:22 -03:00
Claudio Sanches
137de9eea6
Fixed access_expires in legacy REST API
2017-03-14 15:40:36 -03:00
Mike Jolley
9bee678819
API updates
2017-03-13 21:36:31 +00:00
Mike Jolley
dd1b8e35dc
API endpoints
2017-03-13 20:26:52 +00:00
Mike Jolley
d2bd1a422c
Merge pull request #13555 from woocommerce/fix-13526-rest-api
...
Update date usage in REST API v1 and v2
2017-03-13 16:04:38 +00:00
Mike Jolley
0098595339
Merge pull request #13554 from woocommerce/fix-13526-legacy-api
...
Fix dates in customer legacy endpoints
2017-03-13 15:59:02 +00:00
Claudio Sanches
3fbb8415d6
Change to single quotes
2017-03-10 19:14:28 -03:00
Claudio Sanches
8cefbd7c08
Added and fixed date properties for customers v2 endpoint
2017-03-10 19:10:41 -03:00