Commit Graph

18 Commits

Author SHA1 Message Date
Claudio Sanches 1f77efae4b Don't use WP_REST_Server::get_raw_data() inside REST API endpoints 2019-07-15 13:30:17 -03:00
Claudio Sanches eac2d39edf Better naming for REST API endpoints 2019-07-15 13:19:03 -03:00
Claudio Sanches 3fd0eb7391 Merge branch 'add/wccom-site-rest-api' of github.com:woocommerce/woocommerce into add/wccom-site-rest-api 2019-07-15 13:13:53 -03:00
Claudio Sanches 396bbe4cf5 Fixed doc blocks and coding standards 2019-07-15 13:13:16 -03:00
Akeda Bagus 3f9bbf5a3b
Replace __DIR__ with WC_ABSPATH. 2019-07-15 23:07:34 +07:00
Claudio Sanches d339a29468 Fixed standards 2019-07-15 12:58:41 -03:00
Claudio Sanches 73f27d030b Use trailingslashit 2019-07-15 12:57:16 -03:00
Akeda Bagus c8812a205b
Add helper method get_authorization_header.
This to support scenario in which HTTP_AUTHORIZATION being stripped
and use getallheaders as a fallback. This helper method is copied from
class-wc-rest-authentication.php.
2019-07-15 22:47:07 +07:00
Akeda Bagus 47db7588d7
Use hash_equals when checking access_token. 2019-07-15 22:03:31 +07:00
Akeda Bagus 0ffd4db630
Move authentication to WCCOM Site API to wccom-site main class. 2019-07-15 21:59:48 +07:00
Akeda Bagus 20325f2db6
Remove duplicate state download_link in favor of download_url. 2019-07-15 21:41:53 +07:00
Akeda Bagus 0891e0c85f
Remove extra docblock line. 2019-07-15 18:45:50 +07:00
Akeda Bagus f51265e58d
Add @since tag. 2019-07-15 15:42:36 +07:00
Akeda Bagus fc7cacb711
Fix coding standard issues. 2019-07-11 19:58:16 +07:00
Akeda Bagus 40201eb9c3
Register wccom-site rest in main class.
With API moved to its own package (see #23957), controllers for wccom-
site namespace are now registered in wccom-site main class.
2019-07-11 18:19:08 +07:00
Akeda Bagus 5756766a03
Reset current_step state when installing. 2019-07-11 16:01:53 +07:00
Akeda Bagus 7d07e70958
Adjust products parameter so it can pass installation args. 2019-07-11 16:01:53 +07:00
Akeda Bagus d51e843190
Move WCCOM Site related files to `/wccom-site` directory.
Also use queue when installing products so API can respond immediately.
2019-07-11 16:01:53 +07:00