Justin Shreve
|
a305da25ef
|
Add batch support to the product reviews endpoint.
|
2016-08-02 10:30:43 -07:00 |
Justin Shreve
|
b8ec255ea8
|
First pass at a product reviews REST API that supports creating/updating/deleting product reviews.
|
2016-08-02 10:30:43 -07:00 |
Mike Jolley
|
ffb74a7b09
|
Add user to site on login
Closes #11409
|
2016-08-02 18:28:31 +01:00 |
Justin Shreve
|
9396c5436b
|
Make sure that the create shipping zone uses the correct permissions function. Also makes sure creating the shipping zone returns 201, with the location of the new entity, like other endpoints.
|
2016-08-02 10:26:26 -07:00 |
Justin Shreve
|
e761edd8d9
|
Make sure to load abstract-wc-rest-shipping-zones-controller.php
|
2016-08-02 10:10:47 -07:00 |
Justin Shreve
|
9a03eb4407
|
Use the new API test base for shipping zone tests.
|
2016-08-02 10:10:47 -07:00 |
Justin Shreve
|
1ba2c6e4d6
|
Line break on spy-server
|
2016-08-02 10:10:47 -07:00 |
Justin Shreve
|
069ee3b9ac
|
Add an error check when creating a new shipping zone via the API, incase create() fails.
|
2016-08-02 10:10:47 -07:00 |
Justin Shreve
|
33e0b367ac
|
Add new line at end of files.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
ea4285b1ec
|
Ensure “rest of the world” zone retrieval doesn’t fail by using the core method instead of the REST controller wrapper.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
105064ad26
|
Test coverage for getting a single shipping zone method.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
bb23d2eaae
|
Ensure _links are added to the single shipping zone method endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
e007bc1778
|
Test coverage for all shipping zone methods endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
5e7c495e10
|
Add “rest of the world” zone to API response.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
cdc90f5633
|
Test coverage for shipping zone method routes.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
61a5bf8a68
|
Add single shipping zone method instance endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
288496b22b
|
Separate shipping zone endpoint permissions check between read and write operations.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
7ebb466287
|
REST API item schemas should be singular objects.
Use single object schemas for Shipping Zone Locations and Methods.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
f2bb438e98
|
Add _links to each shipping zone method.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
92f0c2bd2c
|
Add endpoint to retrieve all shipping zone methods.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
510229e13d
|
Add initial controller for Shipping Zone Methods endpoint, with schema definition.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
5400f94f86
|
Shipping zone location “type” field sanitization callback should be for text values.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
5d147ae287
|
Fix @extends annotation in shipping zone controller classes.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
b9a0367cfa
|
Test coverage for update shipping zone locations endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
6d891e1247
|
Handle case where no locations are sent in update request.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
e5fac4911e
|
Test coverage for requesting shipping zone locations with an invalid ID.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
0db15c5328
|
Add test coverage for shipping zone locations retrieval endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
626819f9b8
|
Add shipping zone locations update endpoint and handler.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
c041e69e86
|
Correct locations schema, should be an array of location objects.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
9946d028f2
|
Add “described by” link to shipping zones endpoint response.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
96c18abb8d
|
Add shipping zone locations retrieval endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
56ef442624
|
Move common methods to an abstract base shipping zones controller class.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
7a142af215
|
Initial Shipping Zone Locations endpoint controller, with schema.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
9b564b87b1
|
Add test coverage to single shipping zone retrieval endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
6a9ba5b9f3
|
Add test coverage for shipping zone update endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
e037cf661e
|
Add test coverage to shipping zone creation endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
3492f397d4
|
Add test coverage for shipping zone schema endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
e4ccede35f
|
Test coverage for /shipping/zones.
Covers success, shipping disabled, and insufficient permissions cases.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
bbe5ffc295
|
Add helper method to create shipping zones during testing.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
2a7e81a809
|
Initial Shipping Zones unit test coverage, testing route registration.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
2267e62fe0
|
Add REST API testing bootstrap.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
5718e66b2c
|
Add create shipping zone endpoint and handler.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
29e150612f
|
Add update shipping zone endpoint and handler.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
1480741998
|
Cast returned zone ID and order as integers.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
69a40b0648
|
Refactor Shipping Zone retrieval into a reusable method.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
039f5d2300
|
Add route and handler for retrieving single Shipping Zones.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
fd042b88cf
|
Implement get_items() for Shipping Zones endpoint.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
0de6f42b51
|
Create GET route for shipping zones, handling case where shipping calculations are disabled.
|
2016-08-02 10:10:47 -07:00 |
Jeff Stieler
|
267e5cba9a
|
Add initial Shipping Zones REST API controller, with zone schema definition method.
|
2016-08-02 10:10:47 -07:00 |
Justin Shreve
|
72f01d9c0a
|
Merge pull request #11548 from woothemes/system-status-api
Add system status info REST API endpoint
|
2016-08-02 10:08:45 -07:00 |