Manual:Hooks/ApiRsdServiceApis

Category:MediaWiki hooks#ApiRsdServiceApis Category:Hooks added in MediaWiki 1.17.0#ApiRsdServiceApis
ApiRsdServiceApis
Available from version 1.17.0
Add or remove APIs from the RSD services list.
Define function:
public static function onApiRsdServiceApis( $apis ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ApiRsdServiceApis": "MediaWiki\\Extension\\MyExtension\\Hooks::onApiRsdServiceApis"
	}
}
Called from: File(s): api/ApiRsd.phpCategory:MediaWiki hooks included in ApiRsd.php#ApiRsdServiceApis
Interface: ApiRsdServiceApisHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ApiRsdServiceApis extensions.

Details

  • &$apis: array of services

Each service should have its own entry in the $apis array and have a unique name, passed as key for the array that represents the service data. In this data array, the key-value-pair identified by the apiLink key is required.

See also

Category:Hooks added in MediaWiki 1.17.0 Category:MediaWiki hooks Category:MediaWiki hooks included in ApiRsd.php