Generate a swagger file for your Wordpress based on the API plugins installed
Switch branches/tags
Nothing to show
Clone or download
starfishmod Merge pull request #15 from Okhoshi/master
Comply with the AutoRest Swagger schema

Thanks for this!!
Latest commit 844085c Jan 8, 2018


Generate a swagger file for your Wordpress, based on the plugins installed.

Download the zip file and install using the plugins install upload.

Go to to get the swagger file in JSON format. At this stage this plugin does not generate yaml files.

This plugin works well with WP-APIv2 and any plugin that uses the WP_REST_Server class to register it's API's

This plugin will detect the WP API Oauth1.0a plugin and add that to the "securityDefinitions". Note that Swagger does not support authenticating by Oauth1 and I have added this in the definition produced.


Your REST-API endpoint should define a schema array entry (else how would we generate the swagger docs).

Registering the schema

Defining the schema