You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The REST API docs give endpoints and an explanation around how they work, but nowhere in the docs does it mention that you need to prepend your endpoints with /wp-json/.
For instance in the table on this page the endpoints are shown:
That list tells me I need to use www.domain.com/wp/v2/posts when in reality I need to use www.domain.com/wp-json/wp/v2/posts
I just faffed about for several hours wondering why the endpoint I was using direct from the endpoints index at www.domain.com/wp-json was giving me a 404, turns out I needed some esoteric, unexplained, internal knowledge about the API in order to perform a basic task.
Please make this much clearer in the docs - ideally by including it in any example endpoints you provide.
The text was updated successfully, but these errors were encountered:
The REST API docs give endpoints and an explanation around how they work, but nowhere in the docs does it mention that you need to prepend your endpoints with
/wp-json/
.For instance in the table on this page the endpoints are shown:
That list tells me I need to use
www.domain.com/wp/v2/posts
when in reality I need to usewww.domain.com/wp-json/wp/v2/posts
I just faffed about for several hours wondering why the endpoint I was using direct from the endpoints index at
www.domain.com/wp-json
was giving me a 404, turns out I needed some esoteric, unexplained, internal knowledge about the API in order to perform a basic task.Please make this much clearer in the docs - ideally by including it in any example endpoints you provide.
The text was updated successfully, but these errors were encountered: