As an API consumer I would like to request a list of articles from a public endpoint that have been edited the most over a certain time period.
A/C
- I only see pages which have been updated within the configured time period (config.purge_strategy.max_age)
- The pages are sorted by a score (algorithm will be based on Weekipedia).
Route: /v1/feed/trending-edits
Response:
{
"pages": [
{
$merge: [ 'https://en.wikipedia.org/api/rest_v1/page/summary/Statewide opinion polling for the United States presidential election, 2016' ],
"totalEdits": 15, // TBC: Does apps want to show this or can this be removed?
"trendiness": 93, // score
"isNew": false,
"trendedAt": "2016-11-04T16:19:38.737Z"
}
],
"ts": "2016-11-04T18:10:21.325Z"
}