Description
Access to the Sitemap endpoints was recently restricted (see: T407122: [5.2.5 Milestone] Introduce API Gateway access controls on sitemap endpoints). Although the Sitemap documentation is already hidden from the REST Sandbox since not all API users are eligible to access it, users may still discover the spec through the specs module and discovery endpoint. Because of this, we want to have a slightly more descriptive header for the API, which directs users towards resources with information about what types of users may access the endpoints, and how to get in contact to join our trusted bot program.
Conditions of acceptance
Update the description from:
Information about the site as a whole, such as sitemaps
To:
Provides information about Wikimedia project sites, including sitemaps. To prevent abusive scraping and ensure fair use of infrastructure, access to endpoints in this API is restricted to specific user groups. For more information about who can access this API, see https://wikitech.wikimedia.org/wiki/CDN/Backend_api/Sitemap_access or contact bot-traffic@wikimedia.org.
Implementation details
The Site module is not visible in the REST Sandbox. To see the generated spec, the easiest way is to access it through the Discovery endpoint within the Specs module (example in test wiki below, but the generated spec should be the same for all wikis):


