title: get all posts json format in wordpress
body: <p>I am trying to fetch all posts as follows:</p>
  
  <pre><code>http://myexample.com/wp-json/posts
  </code></pre>
  
  <p>but not all of the results are fetched.I tried adding <code>?numberposts=-1</code> to the url so I can fetch all of them but still nothing happened.
  Concerning the Settings->Reading, it's set to 4 because that's what should appear in the website so I don't wish to change it.</p>
  
  <p>Any ideas how I can proceed?</p>