Get all sensors
Retrieves all sensors that are registered for the available devices
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- id integer
the id of the sensor
- slug string
the slug of the sensor
label object
item object[]
languageCode stringlanguageCode for the language of the label. e.g.
en,de,...text stringthe label text
translationId integerunique identifier of the translation item
description object
item object[]
languageCode stringlanguageCode for the language of the description. e.g.
en,de,...text stringthe description text
translationId integerunique identifier of the translation item
- price integer
the price of the sensor
- lifePeriod integer
the estimated life period of the sensor in days
- manufacturer string
the name of the manufacturer of the sensor e.g.
Bosch,Truebener GmbHetc. - validation boolean
boolean that is true if the information is validated by an admin
elements object[]
id integerid of the sensorElement
accuracy numberthe accuracy with which the phenomenon is measured
sensorId integerid of the sensor the sensor Element belongs to
phenomenonId integerthe id of the measured phenomenon
unitId integerthe id of the unit of the measured phenomenon
- image string
the filename of the sensor's image that can be accessed via /images/uploads/{filename}
[
{
"id": 0,
"slug": "string",
"label": {
"item": [
{
"languageCode": "string",
"text": "string",
"translationId": 0
}
]
},
"description": {
"item": [
{
"languageCode": "string",
"text": "string",
"translationId": 0
}
]
},
"price": 0,
"lifePeriod": 0,
"manufacturer": "string",
"validation": true,
"elements": [
{
"id": 0,
"accuracy": 0,
"sensorId": 0,
"phenomenonId": 0,
"unitId": 0
}
],
"image": "string"
}
]