VOOZH about

URL: https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:api.php

⇱ Manual:api.php - MediaWiki


Jump to content
From mediawiki.org
MediaWiki file: api.php
Location: /
Source code: master1.45.31.44.51.43.8
Classes: Find codeFind documentation

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

Actions taken

[edit]

Several actions are taken by api.php, including:

  • Verify that the PHP version is supported by the software and exit with an error message if is not.
  • Include WebStart.php.
  • 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.

See also

[edit]