Manual:api.php

From MediaWiki.org
Jump to: navigation, search
MediaWiki File: api.php
Location: /
Source code:

HEAD1.18beta1
1.18.11.17.2

Classes: None


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

[edit] Actions taken

Several actions are taken by api.php, including:

  • Check for PHP version 5.2.3 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 Manual:$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.

[edit] See also

Language: English  • Français • Polski
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox