BJU COVID Dashboard — API

API

GET /api/v1/entries
Returns a complete entry for a particular date range. Defaults to the latest record. Ranges may be selected with "begin" and "end" parameters, which are inclusive and accept dates in "yyyymmdd" format. Sort by using "sort" with either "ascending" or "descending". Example:
[
    {
        "date": 20201106,
        "studentIsolation": 25,
        "studentHospitalization": 0,
        "facStaffIsolation": 6,
        "facStaffHospitalization": 0,
        "timestampRetrieved": 1604933662.827424
    },
    {
        "date": 20201104,
        "studentIsolation": 24,
        "studentHospitalization": 0,
        "facStaffIsolation": 6,
        "facStaffHospitalization": 0,
        "timestampRetrieved": 1604595046.366427
    },
    {
        "date": 20201102,
        "studentIsolation": 23,
        "studentHospitalization": 0,
        "facStaffIsolation": 6,
        "facStaffHospitalization": 0,
        "timestampRetrieved": 1604434895.2966108
    }
]

GET /api/v1/entries/:date
Returns a complete entry for a particular date. Date should be formatted as yyyymmdd. For example, GET /api/v1/entries/20201102. Example:
{
    "date": 20201102,
    "studentIsolation": 23,
    "studentHospitalization": 0,
    "facStaffIsolation": 6,
    "facStaffHospitalization": 0,
    "timestampRetrieved": 1604434895.2966108
}
GET /api/v1/entries/all
Returns all dataset entries.
GET /api/v1/latest
Returns the latest entry in the dataset.