jeffstieler / rest-console-embed
Shortcode embed of the WPCOM Rest Console
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:wordpress-plugin
pkg:composer/jeffstieler/rest-console-embed
Requires
- jeffstieler/rest-api-console2: dev-master
This package is not auto-updated.
Last update: 2025-11-08 23:23:14 UTC
README
WordPress shortcode plugin providing an embeddable console for exploring REST APIs in your content.
Based on Automattic's WordPress.com Console.
Using the shortcode
[rest-console api_root="http://path/to/api" auth="none" width="100%" height="500px"]
api_root- Root URL of the target API.
auth- "none", "oauth", or "proxy". Using values other than "none" is an exercise left to the reader. ;)
width- Width of the containing div, defaults to
100%.
- Width of the containing div, defaults to
height- Height of the containing div, defaults to
500px.
- Height of the containing div, defaults to
API Compatibility
For the console to work properly, the target API will need to:
- Respond to versioned requests, specified in the URL (e.g.
/api/v1/endpoint) - Expose a
/versionsendpoint to provide metadata about the API's different versions - Expose a
/helpendpoint to provide metadata about the API's endpoints- See
https://public-api.wordpress.com/rest/v1.1/help(make sure to request withAccept: application/jsonheader)
- See