-
Notifications
You must be signed in to change notification settings - Fork 34
Improve documentation regarding WP API REST urls #146
Description
The rest API problem
Instead of installing WordPress on my server I tried to use a free site on worpress.com and the problem was that they don’t support the /wp-json
endpoint. Instead, you have to use something like this:
https://public-api.wordpress.com/wp/v2/sites/instajuegos.home.blog/posts/ 3
That drove me crazy because it was so difficult to find that endpoint on forums etc. I realize that wordpress.com was very limited so I decided to install WordPress on my server. But the /wp-json
endpoint still does not work because I didn’t have something called permalink. Again google and forums looking for the answer.
I think this is a very important part because is the way you connect your backend with your frontend. So, in my opinion, the docs are a bit poor explaining all of these cases.
What I would do is create a small tool inside of the docs where you can type the URL of your site and then it tells you what endpoints can be used. Checking first /wp-json
then /?rest_route=/.
or even the wordpress.com format.
Source: https://community.frontity.org/t/my-experience-and-some-feedback-for-frontity/999