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...
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)?
It was simply a matter of enabling URL rewriting in Wordpress. Basically, go to Settings
-> Permalinks
and make sure the first rewriting option is set to Posts Name
.