Unable to activate/use REST API

I am trying to use the Rest APIs documented here, but I don’t see these endpoints registered?
URL: https://piktal.tech/wp-json/hivepress/v1/listings/174

I am using ExpertHive theme

{
"code": "rest_no_route",
"message": "No route was found matching the URL and request method.",
"data": {
"status": 404
}
}

Hi,

Please check this topic: https://community.hivepress.io/t/rest-api-routes-return-401-errors/786/4

​I hope this is helpful to you.

Unable to access the link. Is the chat private? Also please note that
https://piktal.tech/wp-json/hivepress/v1/listings this returns 401
https://piktal.tech/wp-json/hivepress/v1/listings/174 returns no route found

Hi @andrii , I am unable to access the shared link? Could you please help?

Hi,

Please make sure that you make the request using the method described in the documentation; if you, for example, make a GET request instead of a POST request, you will see the not found error. Also, if you get a 401 error, then you are most likely not logged in, I recommend reviewing this doc: Authentication – REST API Handbook | Developer.WordPress.org

I was using WP Rest Api Authentication. It works fine for other APIs, but doesn’t work for HivePress APIs. After looking at its usage in ExpertHive, I found that hivePress APIs require Nonce too. Will try to figure out if that can be circumvented or create new APIs with HivePress models . Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.