The main RESTBase cluster needs to be configured to proxy requests to the Analytics Pageview service.
The [[https://github.com/wikimedia/restbase/pull/343#issue-107288515|commit message of the original pull-request]] indicates that consensus was previously reached on the following mapping:
```
/{module:stats}/views/v1/per-article/{access}/{agent}/{article}/{granularity}/{start}/{end}
get:
x-request-handler:
- get_view_stats_per_article
request:
uri: http://wikimedia.org/stats/views/v1/per-article/{domain}/{access}/{agent}/{article}/{granularity}/{start}/{end}
/{module:stats}/views/v1/per-project/{access}/{agent}/{granularity}/{start}/{end}
get:
x-request-handler:
- get_view_stats_per_project
request:
uri: http://wikimedia.org/stats/views/v1/per-project/{domain}/{access}/{agent}/{granularity}/{start}/{end}
/{module:stats}/views/v1/top/{access}/{year}/{month}/{day}
get:
x-request-handler:
- get_view_top_stats
request:
uri: http://wikimedia.org/stats/views/v1/top/{domain}/{access}/{year}/{month}/{day}
```
See also:
* {T103811} (around about [[https://phabricator.wikimedia.org/T103811#1639220|here]])
* https://github.com/wikimedia/restbase/pull/343#issue-107288515 (original commit message)