Extension:SwaggerDoc

The SwaggerDoc extension provides swagger 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 swagger doc instead of spending much time on some custom documentation. The extension allows you to just insert a swagger UI into a page content.

Usage
To use it, you need to
 * Create a wikipage (for example, MySwaggerJsonSpec page) with swagger spec (json file). You may also want to change wikipage schema to JSON but that is not mandatory
 * On another wikipage insert Swagger doc tag with either specUrl or specUrls argument:
 * Save page and refresh it. You will see the swagger UI builtin in your page:
 * Save page and refresh it. You will see the swagger UI builtin in your page:
 * Save 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!