[[https://github.com/wikimedia/mediawiki/blob/d1cf48a397edbbe9c6a63d6f83861d676f686d07/includes/ServiceWiring.php#L402-L418|`MediaWikiServices::getVirtualRESTServiceClient()`]] expects `$wgVirtualRestConfig` to contain the individual service configurations under a `paths` key, indexed by mount point. [[https://www.mediawiki.org/wiki/Manual:$wgVirtualRestConfig|The documentation]], [[https://github.com/wikimedia/operations-mediawiki-config/blob/46070d564c87d2c51bd492460dcdaa9f743f9784/wmf-config/CommonSettings.php#L2223-L2256|WMF production]]
and Vagrant ([[https://github.com/wikimedia/mediawiki-vagrant/blob/b072a101d106dd904546bda356f143c2a2bce000/puppet/modules/role/templates/parsoid/vrs.php.erb|1]], [[https://github.com/wikimedia/mediawiki-vagrant/blob/b072a101d106dd904546bda356f143c2a2bce000/puppet/modules/role/templates/restbase/vrs.php.erb|2]]) put the configuration under the `module` key instead. [[https://github.com/wikimedia/mediawiki/blob/d1cf48a397edbbe9c6a63d6f83861d676f686d07/includes/DefaultSettings.php#L8516-L8563|`DefaultSettings.php`]] mentions both options but leaves the relation between them unclear. It seems like all MediaWiki extensions that use `VirtualRESTServiceClient` just piece the config together manually ([[https://github.com/wikimedia/mediawiki-extensions-ContentTranslation/blob/6c9f75310d1e5852139ac5ff7d3017f549cbcc96/includes/RestbaseClient.php#L24-L70|1]], [[https://github.com/wikimedia/mediawiki-extensions-Math/blob/df1689c7177d5b7ef946ae2ff525594bd377da3f/MathRestbaseInterface.php#L164-L178|2]], [[https://github.com/wikimedia/mediawiki-extensions-Flow/blob/883a2a0394c68dd4bb38da6578567976f6e1753b/includes/Conversion/Utils.php#L231-L314|3]], [[https://github.com/wikimedia/mediawiki-extensions-VisualEditor/blob/9ef0f71983d6bc28251b25a111d6090439feea53/ApiVisualEditor.php#L30-L78|4]]). Is the service wiring deprecated/abandoned? Is it an unfinished rewrite? Are new extensions expected to set up their client manually? More clarity around that would be welcome.