-
Notifications
You must be signed in to change notification settings - Fork 47
Specification
JK edited this page Sep 5, 2019
·
9 revisions
Request to get meta data from the server:
GET /
The answer is a json document containing the meta data.
meta.json
Request to get data about a specific city:
GET /<city_id>/
The answer is a json document containing the city data.
city.json
The timespan request is available in two versions:
- Version 1 is used by default but does only provide forecast data.
- Version 1.1 is used when
version=1.1
is added to the URL and provides forecast and historic data. Due to backwards compatibility version 1 uses a different format.
Request: GET /<city_id>/<lot_id>/timespan?from=yyyy-mm-ddThh:MM:ss&to=yyyy-mm-ddThh:MM:ss
, from
and to
must be in the UTC timezone.
Answer: timespan.json
Request: GET /<city_id>/<lot_id>/timespan?from=yyyy-mm-ddThh:MM:ss&to=yyyy-mm-ddThh:MM:ss&version=1.1
, from
and to
must be in the UTC timezone.
Answer: timespan1_1.json