How do I enable REST API after it has been disabled?
-
I am creating a website and had set it to private initially (which turned off the REST API). Now it’s public, and I want to be able to use a plug-in to pull the pages into an app format through Shoutem, but it’s still showing as disabled on their end. How do I enable the REST API again?
The blog I need help with is: (visible only to logged in users)
-
Hi,
The site you mentioned isn’t on a plugin-enabled plan, so the REST API may be limited in the way Shoutem expects. Could you confirm if you’re working with a plugin-enabled site or a self-hosted WordPress installation?
Could you share the site URL?
That way, I can guide you with the correct steps.In the meantime, here’s our developer documentation on the WordPress.com REST API so you can check the available endpoints: https://developer.wordpress.com/docs/api/
Let me know if that helps or if you have any other question. -
This is the site URL https://shoutem.com/support/wordpress-integration/
This WordPress integration they offer should be working, but I’m getting an error message that says “Provided URL is not a valid WordPress URL.”
When I contacted them, they said it was because the REST API had been disabled (when the account was set to private initially) and needed to be enabled again.
-
Thanks for sharing @alissac7ecf4782c,
I checked the guide, and the site URL still needs the ability to integrate via the REST API, which is enabled by default on plugin-enabled WordPress installs.
Your current site plan doesn’t have that functionality.
To integrate with Shoutem, you might need to upgrade to our Business plan or higher to install it. You can find more details about our Business plan here: Business plan.
Then you should be able to integrate without any issues.
Let me know if you have any other questions. -
I upgraded to the business account. The links are still saying they aren’t valid WordPress URLs. How do I ensure the REST API is enabled?
-
Hi there,
The REST api is enabled by default for your site. I can see a GET response successfully return results for the route https://holydisruptionsathome.org/wp-json.
If an endpoint isn’t producing the expected results, double check the documentation and make sure the endpoint and all parameters are successfully entered when trying to make this call.
- The topic ‘How do I enable REST API after it has been disabled?’ is closed to new replies.