Note: This question is a verbatim copy of the one I posted a week ago there. I've tried various solutions from other questions with no luck, until someone suggested that I ask here on the WP dedicated SO.
After installing a fresh Wordpress 4.8 instance and the latest version of WooCommerce 3.0.8, we are trying to understand how to use the WooCommerce REST API.
From their documentation, it seems to be pretty straightforward, but we just get 404s on each endpoint.
We're new to both Wordpress and WooCommerce, so the different things we read can be misleading and often contradict one another...
- The Wordpress index endpoint gives us a 404.
- Any WooCommerce (eg /wp-json/wc/v2/products) gives us a 404.
- As the Wordpress demo REST site answers, ours serves a 404. Is it even the API base WooCommerce is relying on (confused...)?
The 404s we get are straight from our webserver, not from
We are trying to understand whether we need some more plugin to enable these REST endpoints. We tried adding numerous without luck.
How to get those REST endpoints enabled? Are we reading an outdated documentation? Is there some Apache/nginx/IIS/LiteSpeed/LiteSpeed trickery involved here (We cannot find any PHP file with those names, so we're wondering if maybe we're missing a rewrite rule)?