Home › Support › General › HivePress › how to get all my listings using Hivepress REST Api?
how can I access my listings using GET method on the hivepress REST API
It’s not possible at the moment, but this feature is on the roadmap.
so is there a way I could access my data outside of wordpress
Yes, since Listing is a custom post type “hp_listing” you can make it available via the built-in WP REST API https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-rest-api-support-for-custom-content-types/
Ok thank you, But what would be the api endpoint? (like to get my normal post it would be http://www.example.com/wp-json/wp/v2) what about for the custom post?
Thank you again
You can find more details here https://scottbolinger.com/custom-post-types-wp-api-v2/ The endpoint should be /wp-json/wp/v2/hp_listing
You must be logged in to reply to this topic.