Get a single unit
Get a single unit
Path Parameters
- iri integer or string required
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- id integer
the id of the unit
- slug string
the slug of the unit
- name string
the name of the unit
- notation string
the notation of the unit
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
rov object[]
all range of values that have the given unit
id integerthe id of the sensor
min integerminimal value of the range
max integermaximum value of the range
unit object
id integerthe id of the unit
slug integerthe slug of the unit
name stringthe name of the unit
notation stringthe notation of the unit
validation booleanboolean that is true if the information is validated by an admin
descriptionId integerthe descriptionId of the units description
Element object[]
all sensor elements which measure phenomena in the retrieved unit
id integerthe id of the sensor element
accuracy floatthe accuracy of the measured phenomenon
accuracyUnit object
the unit the sensor element measures its phenomenon in:
id integerthe id of the unit
slug integerthe slug of the unit
name stringthe name of the unit
notation stringthe notation of the unit
validation booleanboolean that is true if the information is validated by an admin
descriptionId integerthe descriptionId of the units description
phenomena object
the phenomenon that is measured by the sensor Element
id integerthe id of the phenomenon
slug stringthe slug of the phenomenon
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
sensor object
the sensor that holds the sensor Element
id integerthe id of the sensor
slug stringthe 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
{
"id": 0,
"slug": "string",
"name": "string",
"notation": "string",
"description": {
"item": [
{
"languageCode": "string",
"text": "string",
"translationId": 0
}
]
},
"rov": [
{
"id": 0,
"min": 0,
"max": 0,
"unit": {
"id": 0,
"slug": 0,
"name": "string",
"notation": "string",
"validation": true,
"descriptionId": 0
}
}
],
"Element": [
{
"id": 0,
"accuracyUnit": {
"id": 0,
"slug": 0,
"name": "string",
"notation": "string",
"validation": true,
"descriptionId": 0
},
"phenomena": {
"id": 0,
"slug": "string",
"label": {
"item": [
{
"languageCode": "string",
"text": "string",
"translationId": 0
}
]
}
},
"sensor": {
"id": 0,
"slug": "string",
"label": {
"item": [
{
"languageCode": "string",
"text": "string",
"translationId": 0
}
]
}
}
}
]
}