framework icon indicating copy to clipboard operation
framework copied to clipboard

Enable the WP REST API default endpoints ?

Open ligne13 opened this issue 4 years ago • 2 comments

Hi,

it seems the WP REST API endpoints are not usable by default. Do I have to create routes for each default endpoint ? (For example: /wp/v2/posts, with or without parameters).

thank you

ligne13 avatar May 14 '20 16:05 ligne13

Did you use the correct url? {domain}.{extension}/wp-json/wp/v2/posts

mvdhoek1 avatar May 15 '20 07:05 mvdhoek1

Normally those endpoint should be accessible. For example, Gutenberg is using them in order to work. I would refer to the official REST API documentation for best usage. I haven't yet encountered an issue with it.

jlambe avatar May 15 '20 16:05 jlambe