document /api/timeline
Closed this issue · 0 comments
ornicar commented
new oauth endpoint serving https://lichess.org/timeline in JSON.
curl https://lichess.org/api/timeline?nb=20&since=<timestamp>
Relevant code:
- https://github.com/lichess-org/lila/blob/master/app/controllers/Timeline.scala#L36-L44
- https://github.com/lichess-org/lila/blob/master/modules/hub/src/main/actorApi.scala#L129-L163
The output is complex, for each timeline entry has its own format. The JSON is constructed automatically from the related entry case class
types in here so there's no JSON construction code to look for.