{
  "endpoints": [
    {
      "url": "/snapshot/:airport",
      "desc": "get snapshot of current aircraft at airport (iata or icao code"
    },
    {
      "url": "/flight/:id",
      "desc": "get details of flight (flight24 id)"
    },
    {
      "url": "/raw/:id",
      "desc": "get raw details of flight as returned by flightradar24"
    },
    {
      "url": "/log/:airport/details",
      "desc": "get details of all flights in log with origin or destination given (IATA) airport code"
    },
    {
      "url": "/log/:airport/details.csv",
      "desc": "download details of all flights in log for airport as CSV file"
    },
    {
      "url": "/log/:airport/arrivals",
      "desc": "get stats on arrivals to airport (identified by IATA code)"
    },
    {
      "url": "/log/:airport/arrivals?from=ts&to=ts",
      "desc": "ditto within from/to range"
    },
    {
      "url": "/log/:airport/departures",
      "desc": "get stats on departures for airport, optionally with from/to timestamps"
    },
    {
      "url": "/log/:airport/departures?from=ts&to=ts",
      "desc": "ditto within from/to range"
    },
    {
      "url": "/log/start/:airport",
      "desc": "start logging snapshots from airport"
    },
    {
      "url": "/log/stop/:airport",
      "desc": "stop logging snapshots from airport"
    },
    {
      "url": "/log/clear",
      "desc": "remove all entries from log"
    },
    {
      "url": "/log/errors",
      "desc": "list errors encountered (e.g. ‘empty response’) since last app restart"
    },
    {
      "url": "/airport-bounds/:airport",
      "desc": "set bounds for airport; eg /airport-bounds/lhr?nw=51.48,-0.50&se=51.46,-0.43"
    }
  ]
}