Plugin info

Total downloads: 3,694
Active installs: 20
Total reviews: 3
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 3/10/2016 (3638 days ago)
Added to WordPress: 3/9/2016 (9 years old)
Minimum WordPress version: 4.2
Tested up to WordPress version: 4.6.26
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 3638 days ago • 3 reviews

22/100

Is WP REST JMESPath abandoned?

Possibly abandoned (last update 3638 days ago).

Compatibility

Requires WordPress: 4.2
Tested up to: 4.6.26
Requires PHP: f

Developers

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

A common request for the WP REST API is to limit the fields returned by the API. Modifying the underlying response objects is not recommended as this is likely to cause compatibility issues with other consumers of the API; this plugin instead allows consumers to specify the data that they need using the JMESPath query language for JSON to request only the data that they need from the response.

Usage

The plugin checks REST API requests for the _query parameter; if present it treates this as a JMESPath expression and applies it to the response, e.g.

curl -s --globoff  "http://my.wordpress.site/wp-json/wp/v2/pages?_query=[0:2].{id: id, title: title.rendered}"

could be used to select only the first two posts (with the [0:2] slice) and from there build an object with id and title fields selected from id and title.rendered.

The JMESPath site has an interactive tutorial and examples.

Installation

  1. Upload wp-login-nonce.php to the /wp-content/plugins/ directory or the /wp-content/mu-plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress if uploaded to /wp-content/plugins/.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

No changelog available