Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide correct endpoints in the REST API docs #112

Open
AbrahamBrookes opened this issue Jun 14, 2021 · 0 comments
Open

Please provide correct endpoints in the REST API docs #112

AbrahamBrookes opened this issue Jun 14, 2021 · 0 comments

Comments

@AbrahamBrookes
Copy link

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:
image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant