Translations:Manual:$wgAPIModules/8/en

Then you would create an  file containing an   class that extends, say, $ApiBase, e.g.