WPQuery enables external access to the internal database structure of a Wordpress instance.
This can be useful when migrating from Wordpress to a different platform, or when a third party needs to integrate with a Wordpress based site.
When installed the db structures of Worpdress can be exposed via wp-json.
The plugin generates a unique API key, which can the be used to access this data.
GET http://localhost/wp-json/wpquery/v1/query?apikey={API_KEY}
GET http://localhost/wp-json/wpquery/v1/query/{TABLE}?apikey={API_KEY}
GET http://localhost/wp-json/wpquery/v1/query/{TABLE}/{ID}?apikey={API_KEY}
GET http://localhost/wp-json/wpquery/v1/query/{TABLE}/{KEY}/{VALUE}?apikey={API_KEY}
PUT http://localhost/wp-json/wpquery/v1/query/{TABLE}/{KEY}/?apikey={API_KEY}
With a JSON body.
Returns a JSON response with a boolean status.
POST http://localhost/wp-json/wpquery/v1/query/{TABLE}/?apikey={API_KEY}
With a JSON body.
Returns a JSON response with a boolean status and insert id.