Extension:ApiExplorer
From MediaWiki.org
|
API Explorer Release status: stable |
|
|---|---|
| Implementation | Special page |
| Description | Allows to interactively explore the documentation of the MediaWiki API |
| Author(s) | Sean Colombo http://seancolombo.com |
| Latest version | 1.0 (September 2011) |
| MediaWiki | 1.18.* or greater |
| License | No license specified |
| Download | |
| Example | API Explorer on LyricWiki |
|
Translate the ApiExplorer extension if it is available at translatewiki.net |
|
| Check usage and version matrix. | |
Purpose[edit]
The purpose of this extension is to provide a friendly interface for viewing the API documentation. Eventually, this extension should be made to allow example-calls right from the same area.
Dependencies[edit]
- Depends on the Javascript API client maintained by Wikia.
- The API must be enabled on the wiki where this extension is running (because the extension uses the API to generate the documentation about the API).
Installation[edit]
- Download and place the file(s) in a directory called
ApiExplorerin yourextensions/folder. - Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/ApiExplorer/ApiExplorer.php";
Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Future plans (where you can help)[edit]
- Update the API to return example URLs
- Show example URLs in the results
- Allow example URLs to be clicked to execute the query & return the results in a small panel.
- Allow modification of the URLs which make example-calls so that the user can tweak them in real-time to see the effects.
Screenshot[edit]
The API Explorer running on a Wikia wiki