aboutsummaryrefslogtreecommitdiff
path: root/backend/hist_data/picked/README.md
blob: 659c17512eafa74280b3b04f5affcfc5845e00ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
This directory holds data for manually-picked events.

Files
=====
-   events.json <br>
    Encodes an array of objects, each describing an event to modify, add, or delete.
    For example:

        [{
            "id": 81068910,
            "title": "COVID-19 Pandemic",
            "start": 2458919,
            "start_upper": null,
            "end": null,
            "end_upper": null,
            "fmt": 2,
            "ctg": "event",
            "image": {
                "file": "covid.jpg",
                "url": "https://en.wikipedia.org/wiki/File:Covid-19_SP_-_UTI_V._Nova_Cachoeirinha.jpg",
                "license": "cc-by-sa 4.0",
                "artist": "Gustavo Basso",
                "credit": ""
            },
            "desc": "Global pandemic caused by the virus SARS-CoV-2",
            "pop": 100
        }]

    -   For event modification, specify `id` and one or more other fields to change.
        If `image` is present, all its fields should be present.
    -   For event deletion, specify only `id` or `title`.
    -   For event addition, specify all fields except `id`, and possibly `image` and `desc`.