Create API’s for custom-post types & custom queries using REST or Graphql
Answering questions myself. I hope this will help some folks. 1.How to create REST API for the custom post type If you’re creating a new custom post type then make sure this option is set to true in your arguments array: show_in_rest’ => true, If your custom post is from a theme or plugin and … Read more