Extension:ApiSandbox
From MediaWiki.org
|
ApiSandbox Release status: beta |
|||
|---|---|---|---|
| Implementation | Special page | ||
| Description | MediaWiki API playground | ||
| Author(s) | Max Semenik (MaxSemtalk) | ||
| MediaWiki | 1.18 (r87334 or later) | ||
| License | WTFPL 2.0 | ||
| Download | |||
| Example | Special:ApiSandbox | ||
|
|||
| Check usage and version matrix; stats | |||
ApiSandbox allows developers using the MediaWiki API to experiment with the API from the browser. It is based on a GSoC proposal by Salil P. A..
Usage[edit]
On a wiki with ApiSandbox installed, go to Special:ApiSandbox. Choose action, format and other parameters. The sandbox displays interactive help for every request parameter. Once all parameters are set, click on "Make request" button. The result will be displayed below in the format you chose. The request URL (and POST data, if needed) can be copy-pasted for reuse.
Installation[edit]
- Download the files from Git and place them in $IP/extensions/ApiSandbox/
- Add
into your wiki's LocalSettings.phprequire_once("$IP/extensions/ApiSandbox/ApiSandbox.php");
| This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
Usage[edit]
Navigate to Special:ApiSandbox