Page MenuHomePhabricator

fix 'day' description in RESTBase Pageview API
Closed, ResolvedPublic

Description

You need to enter a leading zero for month and day to form a valid URI.
e.g. this does not work: https://wikimedia.org/api/rest_v1/metrics/pageviews/top/en.wikipedia/all-access/2015/10/1

The RESTBase documentation/description does not mention a leading zero is required.

  1. go to https://wikimedia.org/api/rest_v1/?doc#!/Pageviews_data/get_metrics_pageviews_top_project_access_year_month_day
  2. scroll down to the month or day parameters
  3. notice how the description for each does not specify a leading zero is needed to make 2 digit days/months

Event Timeline

kevinator raised the priority of this task from to Needs Triage.
kevinator updated the task description. (Show Details)
kevinator moved this task to Incoming on the Analytics-Backlog board.
kevinator added a subscriber: kevinator.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 2 2015, 10:48 PM
kevinator set Security to None.
Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptNov 16 2015, 5:22 PM
mforns closed this task as Resolved.Nov 16 2015, 5:22 PM
mforns claimed this task.
mforns added a subscriber: mforns.

Already fixed in parent task.