Handboek:api.php
Jump to navigation
Jump to search
MediaWiki bestand: api.php | |
---|---|
Locatie: | / |
Broncode: | master • 1.35.2 • 1.31.14 |
Klassen: | 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.
Ondernomen acties
Verschillende acties worden ondernomen door api.php, waaronder:
- Check for PHP version 5.3.2 or higher and exit with an error message if a lower version is found.
- Inclusief 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.