title: REST API not working in custom post
body: <p>I have created the custom post in function.php file, it is working fine for me. When I call custom post data via WordPress REST API, It is showing me the error on browser.</p>
  
  <p>Below is the error which was showing me in the browser.</p>
  
  <pre><code>code    "rest_no_route"
  message "No route was found matching the URL and request method"
  data    
  status  404
  </code></pre>
  
  <p>But rest API is working for default post which is present in WordPress.</p>