Extension:SwaggerDoc

The SwaggerDoc extension provides a UI frontend for any Swagger specification.

It is helpful for some enterprise MediaWiki sites to be able to document different APIs. In simple case you may want to just insert a Swagger doc instead of spending a lot of time on some documentation. The extension allows you to just insert a swagger UI into a page.

Usage
To use it, you need to
 * Create a page (for example, MySwaggerJsonSpec page) with swagger spec (JSON file). You may also want to change the content model to JSON but that is not mandatory
 * Insert a SwaggerDoc tag with either specUrl or specUrls argument on another page:


 * Save the page and refresh it. You will see the swagger UI builtin in your page:

Installation and configuration
The extension should work on MediaWiki 1.25+. The used hooks and manifest features are quite old.

To install the extension:


 * 1) Clone the repository to your extensions/ subfolder:
 * 2) Load the extension in your LocalSettings.php:

Done!