Roots Discourse

Issue with WP REST API and Bedrock


#1

Hello,
after migration to Bedrock URL endpoint /wp-json/wp/v2/post returns 302 and than redirect to 404 page.
In contrary URL /?rest_route=/wp/v2/posts returns proper json.
The WP instance is on Nginx. All other permalinks are working. Reset permalinks doesn’t help.
Calling /wp/wp-json/wp/v2/post have the same result.
Anyone had similar issue? Do I need add something special to Nginx config for Bedrock?


#2

So there is no hope?


#3
  • /wp-json/wp/v2/post
  • /?rest_route=/wp/v2/posts

Note the trailing “s”.


#4

Thank you for your reply. :slight_smile: That was just my typo but I tried both with and without trailing “s”. Unfortunately with no effect.