API documentation - matul91/meteo-raspi GitHub Wiki
Api point documentation
Pressure
Get all values
Url: /pressures Method: GET Authorization: NONE Body: NONE
Get last value
Url: /pressures/latest Method: GET Authorization: NONE Body: NONE
Insert value to database
Url: /pressures Method: POST Authorization: Token Header: [„Authorization“ => „Bearer (example token)“] Body: [„pressure“ => „(value INTEGER)“]
Temperature
Get all values
Url: /temperatures Method: GET Authorization: NONE Body: NONE
Get last value
Url: /temperatures/latest Method: GET Authorization: NONE Body: NONE
Insert value to database
Url: /temperatures Method: POST Authorization: Token Header: [„Authorization“ => „Bearer (example token)“] Body: [„tempreature“ => „(value INTEGER)“]
Wind
Get all values
Url: /winds Method: GET Authorization: NONE Body: NONE
Get last value
Url: / winds /latest Method: GET Authorization: NONE Body: NONE
Insert value to database
Url: / winds Method: POST Authorization: Token Header: [„Authorization“ => „Bearer (example token)“] Body: [„speed“ => „(value INTEGER)“, „direction“ => „(value STRING)“]
Station Value
Get all values
Url: /stationValue Method: GET Authorization: NONE Body: NONE
Insert value to database
Url: /stationValue Method: POST Authorization: Token Header: [„Authorization“ => „Bearer (example token)“] Body: [„volt“ => „(value INTEGER)“]
Photo
Get all values
Url: /photo/all Method: GET Authorization: NONE Body: NONE
Get last value
Url: /photo Method: GET Authorization: NONE Body: NONE
Insert value
Url: /photo/save Method: POST Authorization: Token Header: [„Authorization“ => „(Static token in ENV)“] Body: [„metaInfo“ => „(value STRING)“, „photo“ => „(example file)“]
Setting
Get all values
Url: /stationValue Method: GET Authorization: Token Header: [„Authorization“ => „Bearer (example token from OAuth)“] Body: NONE