Jump to navigation Jump to search
This page is a translated version of the page Manual:Api.php and the translation is 25% complete.
Other languages:
Afrikaans • ‎Deutsch • ‎Deutsch (Sie-Form) • ‎English • ‎Nederlands • ‎Türkçe • ‎asturianu • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português do Brasil • ‎română • ‎sicilianu • ‎suomi • ‎svenska • ‎čeština • ‎русский • ‎سنڌي • ‎کوردی • ‎ไทย • ‎中文 • ‎日本語

The api.php file is the external access point for the MediaWiki API. See API:Main page for details on using the API.

Akceptované akce

Several actions are taken by api.php, including:

  • Check for PHP version 5.3.2 or higher and exit with an error message if a lower version is found.
  • Include WebStart.php .
  • Check if the API is enabled ($wgEnableAPI ).
  • Do some stuff to make cross-site requests to the API possible. See $wgCrossSiteAJAXdomains .
  • Construct an ApiMain object with the arguments passed via the URL and call its execute() method to do the actual API stuff.
  • Do any deferred updates.
  • Do some logging.

Viz též