Issue with CPT posts within WP REST API showing as []

by samjco   Last Updated June 14, 2019 23:08 PM

When I am querying for posts of a CPT, I get a response of 200 but a return of []. How can I show all of my CPT posts?

my syntax I am using in the http is: http://mydomain/wp-json/wp/v2/myCPT

Related Questions

API Rest Custom Post Type doesn't return all data

Updated February 24, 2017 17:08 PM

Get the Category Name instead of ID from WP-API

Updated December 06, 2017 19:08 PM

Custom Post Type and API REST is not working

Updated July 25, 2018 21:08 PM