Manual:Api.php/pt-br

O arquivo api.php é o ponto de acesso externo para a API do MediaWiki. Veja API:Página principal para obter detalhes sobre o uso da API.

Ações tomadas
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 $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.