Manual:Api.php

The api.php file is the external access point for the MediaWiki API. See main>Special:MyLanguage/API:Main page|API:Main page for details on using the API.

Actions taken
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>Special:MyLanguage/Manual:WebStart.php|WebStart.php.


 * Check if the API is enabled (EnableAPI>Special:MyLanguage/Manual:$wgEnableAPI|$wgEnableAPI).


 * Do some stuff to make cross-site requests to the API possible. See CrossSiteAJAXdomains>Special:MyLanguage/Manual:$wgCrossSiteAJAXdomains|$wgCrossSiteAJAXdomains.


 * Construct an  object with the arguments passed via the URL and call its   method to do the actual API stuff.


 * Do any deferred updates.


 * Do some logging.