Since woocommerce released the 2.1 version with REST API feature, I tried to use it: I activated the API on my woocommerce admin panel but when I try to call the curl: http://www.mydomain.com/wc-api/v1/
the response is a 404 file not found error.
I tried to check everything in internet, I've read woocommerce docs but I cannot figure out what I have to do: probably some setting in the server apache or php... I don't know..
Thank you
Try going, on the Admin Panel, to Settings -> Permalinks. On Default Settings radio group, select the "Post name" one. Save the changes.
Worked for me; hope for you too. :)
Source: this blog post.
EDIT: Website is not available, so I put its Wayback Machine URL.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With