framework
framework copied to clipboard
Enable the WP REST API default endpoints ?
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
Did you use the correct url? {domain}.{extension}/wp-json/wp/v2/posts
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.