The content for this endpoint will come from parsing existing wiki pages that are currently maintained by the editing community.
The API should return data it derives from 2 different pages each day:
- Selected Anniversaries pages
The current day can be seen here:
https://en.wikipedia.org/wiki/Wikipedia:On_this_day/Today
Which injected with data from the selected anniversaries of the current day (for example, August 19):
https://en.wikipedia.org/wiki/Wikipedia:Selected_anniversaries/August_19
- Day of the Year pages
Every day of the year has a page like this:
https://en.wikipedia.org/wiki/May_20
@Mhurd has written some native parsing logic here:
https://github.com/wikimedia/wikipedia-ios/pull/701/files
Monte's structures seem pretty good. The top level dictionary would be something like this
{ selectedAnniversaries: anniversaries, events: events, births: births, deaths: deaths, holidays: holidays };
Where each item in the dictionary is an array of objects like this:
{ year: 1912, yearPage: yearWikiPage, text: textExcludingYear, page: mainWikiPage, otherPages: otherWikiPages };
Each page should be like other pages in MCS with thumbnails, wikidata description, etc…