History View
List a Dataset's values in years
Endpoint: /api/historyView
Request
| Parameter | Type | Position | Required | Sample |
|---|---|---|---|---|
| Content-Type | string |
Header | Yes | application/json |
| Accept | string |
Header | Yes | application/json |
| Authorization | string |
Header | Yes | Bearer eyJ0eXAiOiJKV1QiLCJhbGci... |
| query | json |
Body | Yes |
JSON.stringify('[{
"metric": "Air Quality",
"dataset": "Air Quality",
"postcode": "br11aa",
"metric_year": "2017"
}]')
|
Success Response
{
"data": {
"ranges": [
[
2017,
9.67,
18.39
],
[
2018,
8.93,
15.35
],
[
2019,
8.58,
17.55
]
],
"actuals": [
[
2017,
12.41
],
[
2018,
10.62
],
[
2019,
10.23
]
]
}
}