MediaWiki file: | api.php|
---|---|
Location: | / |
Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
Classes: | Find code • Find 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
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 itsexecute()
method to do the actual API stuff.
- Do any deferred updates.
- Do some logging.
See also
- API:Main page
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.