Topic on Extension talk:Whitelist Pages

Whitelisting a specific API call

1
Revansx (talkcontribs)

Is it possible to use this extension to whitelist a specific API call.

something like:

if ( {$_SERVER['REQUEST_URI']} == "/api.php?action=query&meta=siteinfo&siprop=statistics&format=json") {
  $wgGroupPermissions['*']['readapi'] = true;
}

but managed in the "MediaWiki:Public read whitelist" page

Reply to "Whitelisting a specific API call"