Wordpress rest api returning an empty JSON result
<p>On my wordpress site the Wordpress Rest API plugin used to work correctly and return all posts when I went to:</p>

<pre><code>/wp-json/wp/v2/posts
</code></pre>

<p>but now it returns an empty json <code>[]</code></p>

<p>I know this is very little info to go on but what are the usual suspects when troubleshooting such an issue?</p>

<p>Some history on how we got into this mess: The staging environment was copied to live just before the issue occurred.
- Some changes were made to theme.php and function.php. Those changes have since been removed in trying to figure out why the endpoint is returning an empty json
- I have created new posts and they don't show up
- There is no error on console.log</p>