Help:Api沙盒

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Help:ApiSandbox and the translation is 29% complete.

Other languages:
English • ‎français • ‎فارسی • ‎中文 • ‎日本語 • ‎한국어
2015-03-16 ApiSandbox screenshot.png

ApiSandbox lets developers experiment with the MediaWiki API in a browser form. It was inspired by a GSoC proposal by Salil P. A..

用法

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. Then click the "Make request" button. ApiSandbox makes the request to api.php on your behalf and displays the result below in the format you chose. You can copy the request URL (and POST data, if needed) for reuse.

You can preload ApiSandbox form parameters by putting the query string to api.php in the URL fragment, for example the query /w/api.php?action=languagesearch&search=Maratih&typos=1 becomes Special:ApiSandbox#action=languagesearch&format=json&search=Maratih&typos=1.

Note that, despite it being called a sandbox, any write requests performed with this extension will modify the wiki.

特殊页面 - 帮助 差异 固定链接 合并历史 新文件 新页面 参数设置 随机页面 最近更改 还原 监视列表 ExpandTemplates Api沙盒