-
Notifications
You must be signed in to change notification settings - Fork 1
API Descriptions: Discharge (Water Consumption) Meter
Alexey Andreyev edited this page Oct 14, 2016
·
1 revision
Below bodies of responses to requests to the given URLs are presented, including the .well-known/core URL.
-
/-
rt=http://schema.org/EntryPoint
-
-
/dischargeValue-
rt=http://external/doc#DischargeValue
-
{
"@context": "http://external/doc#",
"@id": "coap://0.0.0.0/",
"@type": "DischargeMeterDevice",
"identifier": "e9704",
"label": { "@value": "Discharge Meter Device", "@language": "en" },
"location": {
"@type": "Place",
"label": "1010"
},
"temperature": "/dischargeValue"
}
{
"@context": "coap://external/doc#",
"@type": "doc:DischargeMeterDevice",
"location": {
"@type": "Place",
"label": "366"
}
}
{
"@context": [
"https://w3id.org/semiot/device/commoncontext#",
{ "doc": "http://external/doc#" }
],
"@id": "doc:ApiDocumentation",
"@type": "ApiDocumentation",
"supportedClass": [
{
"@id": "doc:DischargeMeterDevice",
"subClassOf": "Device",
"supportedProperty": {
"property": "location",
"writable": "true",
"label": "Location"
},
"supportedProperty": {
"property": "label",
"writable": "false",
"label": "Label"
},
"supportedOperation": {
"method": "PUT",
"expects": "doc:DischargeMeterDevice",
"returns": "doc:DischargeMeterDevice"
}
},
{
"@id": "doc:DischargeValue",
"@type": "Link",
"range": {
"@id": "doc:DischargeValue",
"subClassOf": "QuantitativeValue",
"label": "Discharge (L)"
}
}
]
}
{
"@context": "coap://external/doc#",
"@type": "doc:DischargeValue",
"value": "42",
"unitCode": "L"
}