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 |
Download snapshot (Git master)
Git [?]: repo summary • tree • code changes SVN [?]: checkout-url • tree • code changes |
||
| Example | Special:ApiSandbox | ||
|
|||
|
Check usage (experimental) |
|||
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..
[edit] Usage
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.
[edit] Installation
- 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 of Wikimedia's wikis. This means that the extension is stable and works well enough to be used by such high traffic websites. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |