REST API Call URLs are bad
-
Or perhaps I’m just using it wrong. I’m just starting to play around with REST.
For example, I try to test this API call:
/wp-json/wp_live_chat_support/v1/accept_chat
I click the “Try” link, and go down to the Rest Console and this (sanitized) URL is already generated.
https://<mydomain.com>/wp-json/wp_live_chat_support/v1/accept_chat?token=<some generated token>&chat_id=1&agent_id=0
I click the “Try it!” button and nothing happens at all. Nothing appears in the console.
If I paste that URL into my browser address bar, I get a Not Found page –
Not Found The requested URL /wp-json/wp_live_chat_support/v1/accept_chat was not found on this server.
Going to my WordPress install directory, there is indeed no /wp-json/ subdirectory, but maybe there is some kind of rewrite going on that makes it so that subdirectory doesn’t need to be there.
In any case, the REST API does not appear to be working. Is there something I need to configure to make this work?
- The topic ‘REST API Call URLs are bad’ is closed to new replies.