WP API SwaggerUI

Description

SwaggerUI used to make WordPress REST API endpoint have a interactive UI, so we can check our API endpoint directly from the website it self

Feature:

  • Support for GET, POST, PUT, PATCH and DELETE request method
  • Support for Auth Basic authorization method
  • Choose which namespace API that will be used on the SwaggerUI

Screenshots

  • SwaggerUI Interface
  • Options to choose namespace Rest API

Installation

This plugin can be installed directly from your site.

  1. Log in and navigate to Plugins > Add New.
  2. Type “WP API SwaggerUI” into the Search and hit Enter.
  3. Locate the WP API SwaggerUI plugin in the list of search results and click Install Now.
  4. Once installed, click the Activate link.

Reviews

October 8, 2019
Great idea! It picks up all your rest routes automatically and provides you with a documentation page where you can provide a basic auth login/password and try it out. Awesome and love it. Thanks for making such a handy tool.
August 8, 2019
I've built a custom REST API for my WP application and I was looking for some way of documenting it with the 'try it out' type of functions that you often see on other (bigger) sites. After finding swagger.io and then searching the Plugin repository I was absolutely overjoyed with this Plugin. It picks up all your rest routes automatically and provides you with a documentation page where you can provide a basic auth login/password and try it out. Awesome and love it. The only thing that tripped me up - which is no biggie and probably my fault is that you must define all your arguments in the 'args' list. I omitted my IDs because they were already regex checked in the route definition. The plugin needs the args list in order to create the page.
Read all 4 reviews

Contributors & Developers

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

Contributors

Translate “WP API SwaggerUI” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

= 1.0.4
* make WooCommerce REST API Key works on Swagger Docs Auth

= 1.0.3
* change template_include priority
* change dtermine_current_user priority

1.0.2

  • Ensure REDIRECT_HTTP_AUTHORIZATION is not empty

1.0.1

  • Auto add params from path

1.0

  • Initial release