Skip to content

Improved & backported to MediaWiki 1.26 SwaggerDoc fork

License

Notifications You must be signed in to change notification settings

mediawiki4intranet/SwaggerDoc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwaggerDoc

Mediawiki extension to provide swagger ui frontend for any swagger specification.

To install, clone the extension and add to LocalSettings.php:

wfLoadExtension('SwaggerDoc');

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 arguments:
<SwaggerDoc specUrls="[{'url': 'http://MyWiki/index.php/MySwaggerJsonSpec?action=raw', 'name': 'My swagger spec'}]" />
<SwaggerDoc specUrl="http://MyWiki/index.php/MySwaggerJsonSpec?action=raw" />
  • Save page and refresh it. You will see: Capture

About

Improved & backported to MediaWiki 1.26 SwaggerDoc fork

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 60.0%
  • JavaScript 23.6%
  • CSS 16.4%