Dette innstikket er ikkje testa med dei tre siste utgåvene av WordPress. Det kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar av WordPress.

REST API Console

Skildring

The REST API Console is an interactive way to explore the WordPress REST API through your normal WordPress admin. Great for learning about the API, tinkering with data on your site, or finding out what your site is exposing. (Also pairs well with a fruity red.)

You’ll need to have the WordPress REST API plugin (v2 or later) installed to use this. You can only access your local site through this plugin.

Don’t have a WordPress site handy? Want to try-before-you-buy? Check out demo.wp-api.org for a publicly visible version!

Installasjon

Upload to your site, activate, then head on over to your new Tools > REST API Console page.

Congratulations!

Omtalar

22. mars 2020
Good start, but this could be a million percent more useful if you simply added the ability to edit the query instead of just appending something. For example: a query like this will never work: /wp/v2/pages/(?P<id>[\d]+) I agree it's nice to have it as a reference, and it should defenitly stay, BUT when you click on it, you should have an options to edit the query to turn it into /wp/v2/pages/123. I know I could get kind of the same result (except it will be wrapped inside an array) with /wp/v2/pages/?include=123, but meh.. Anyway, I'll probably modify the plugin and create this myself, as it seems development has ceased.
Les 1 omtale

Bidragsytarar og utviklarar

“REST API Console” is open source software. The following people have contributed to this plugin.

Contributors

Endringslogg

2.1

  • Remove erroneous double slash in API URLs.

2.0.1

  • Correct versioning issue

2.0

  • Initial release!