Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API definition #5

Open
6 tasks
erget opened this issue Jul 27, 2015 · 0 comments
Open
6 tasks

REST API definition #5

erget opened this issue Jul 27, 2015 · 0 comments

Comments

@erget
Copy link
Member

erget commented Jul 27, 2015

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant