Skip to content

REST API definition #5

Description

@erget

This will be reflected more concretely in views.py, but for now we can collect machine readable endpoints here:

  • / - Homepage, human readable, lots of plots and nice stuff
  • /data/ - entry point for getting raw data. Format: data/$format/$station_id/$start-$end, e.g.:
    • /data/csv/stations/ returns a CSV of available stations
    • /data/csv/0/2015-01-01 00:00 - 2015-07-27 22:00 returns a CSV from 00:00 1 Jan 2015 till 22:00 27 Jul 2015 at station 0
  • /plots/ - entry point for server side rendered plots
    • /plots/$station_id/$start-$end/ returns PNG plot for requested time period

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions