Skip to content

Commit

Permalink
add tests for station/data
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioheinze committed Sep 27, 2024
1 parent c6dc26b commit 23dee69
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/dev/station-data.http
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ content-type: application/json
"station": {
"time": "2024-04-29T08:25:20.766Z",
"device": "00112233AABB",
"firmware": "1.2",
"location": {
"lat": 48.20194899118805,
"lon": 16.337324948208195,
Expand Down
22 changes: 22 additions & 0 deletions tests/stag/station-data.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# API test request for the endpoint /v1/station/data
#

POST https://staging.api.luftdaten.at/v1/station/data/ HTTP/1.1
content-type: application/json

{
"station": {
"time": "2024-04-29T08:25:20.766Z",
"device": "00112233AABB",
"firmware": "1.2",
"location": {
"lat": 48.20194899118805,
"lon": 16.337324948208195,
"height": 5.3
}
},
"sensors": {
"1": { "type": 1, "data": { "2": 5.0, "3": 6.0, "5": 7.0, "6": 0.67, "7": 20.0, "8": 100 }},
"2": { "type": 6, "data": { "6": 0.72, "7": 20.1 }}
}
}

0 comments on commit 23dee69

Please sign in to comment.