title: Remove specific endpoints from wordpress json api
body: <p>I'd like to try to use wordpress as backend only solution. I'd like to use wordpress json api. So I looked at what it offers. It's quite complete, but I  want to remove some functionality.
  For example There's this route : </p>
  
  <pre><code> "\/wp\/v2\/posts\/(?P&lt;id&gt;[\\d]+)"
  </code></pre>
  
  <p>I'd like to limit it to GET. I'd like to completely remove some endpoints (like users/* or settings) and remove some methods inside endpoints.</p>
  
  <p>I stumbled upon this <a href="https://github.com/WP-API/WP-API/issues/2338" rel="nofollow noreferrer">https://github.com/WP-API/WP-API/issues/2338</a>. I understand how it works, but I don't get where I can use this code, do I have to make a plugin of my own for that ? Also they don't talk about limiting methods, only endpoints, everything or just the post api.</p>
  
  <p>well, I want it to become more of a public json api. How can I do that ?</p>