WP-REST-endpoints-to-admin-bar
WP-REST-endpoints-to-admin-bar copied to clipboard
WordPress plugin to link relevant API endpoints in the admin bar.
REST endpoints to admin bar
A WordPress plugin which links all relevant WP REST API endpoints to the admin bar. It further generates valid nonces
so that one can view endpoints like /wp-json/users/ directly from the browser if you're logged in.

Requirements
- PHP 5.4
- WordPress 4.*
Why
Developing with a REST API often needs you to visualize the data structure. I found the easiest way for me to do
that directly in the browser using a JSON formatter like JSONView for Firefox or JSON Viewer for Chromium. While it
is no problem to queue for public data like /wp-json/posts or /wp-json/taxonomies/category/terms one need a
valid nonce to avoid CSRF-attacks when queuing sensitive data like /wp-json/users. That is what the plugin does:
it provide links with valid nonces as request parameter.
Contributors
Thanks to Frank Bültge
Known issues
#3, #2