REST API infrastructure: Infrastructure for the REST API has been integrated into core, the first part of a multi-stage rollout. Inclusion of core endpoints is targeted for an upcoming release. To get a sneak peek of the core endpoints, and for more information on extending the REST API, check out the official WordPress REST API plugin.
Ok got it, I was using REST API plugin 1.2.3, not 1.2.4!
I changed to 1.2.4, and its working again.
In the meantime I had also tried 2.0 beta8, which again did not work. Would be interesting to hear if 2beta8 with WP 4.4 and bedrock is working on your setup.
Actually I use like the documentation says adding /wp-json/wp/v2/posts but the only thing happens is the web site reload and when I use Postman tool I have back the index html.
The version I use from wp-rest-api is Version 2.0-beta13 and wp is the 4.5.1
Somone have the same issue or any idea how can I fix that?
For jdaquila, iamchriswick and anybody else who bumped into this:
I hit the same problem after installing bedrock out of the box.
Just to be clear, as of wp4.7, you don’t need a separate plugin for wp-json anymore. It’s in the core.
What you need to do is to reset the permalinks. I added a muplugin myself: force-postname-permalinks.php in the mu-plugins folder:
<?php
/*
Plugin Name: force-postname-permalinks
Description: Force permalinks to post-name. This will make the rest-api work out of the box.
Version: 1.0.0
Author: Ru Nacken
Author URI: https://github.com/rnacken
License: MIT License
*/
add_action( 'init', function() {
if (get_option('permalink_structure') == '') {
global $wp_rewrite;
$wp_rewrite->set_permalink_structure('/%postname%/');
}
} );