WP REST API – when to use it?
-
Hi,
yesterday I read this post about the upcoming WP REST API: https://poststatus.com/wordpress-json-rest-api/
As I developer, which also has experience with using / building RESTful APIs, I really like the project. However I have some questions to it.
As mentioned in the post you will be able to use this API to do a lot of stuff and many CRUD operations. I am currently developing a plugin which will offer some functions for Theme developers for easy content display. But this could also be done using the new REST API. Do you think this would be a better solution? So the Theme developer just calls this REST url and receives the content as JSON?
I also thought about implementing a custom REST API for my plugin in the future. If I would do that, should I use the api myself (Eating your own dog food) or should I continue using WP functions?
You see, plugins like WooCommerce and EDD are offering an API for Third-Parties. If I am going to offer that too, should / can I use an REST API instead?
So the more general question would be: When should I use the REST API and when should I use WP Functions and offer custom functions to third-parties?
—
I hope I did not confuse you – however I am confused ^^
- The topic ‘WP REST API – when to use it?’ is closed to new replies.