-
Notifications
You must be signed in to change notification settings - Fork 1
API Descriptions: Electricity 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
-
-
/energyValue-
rt=http://external/doc#EnergyValue
-
{
"@context": "http://external/doc#",
"@id": "coap://0.0.0.0/",
"@type": "EnergyMeterDevice",
"identifier": "e9704",
"label": { "@value": "Energy Meter Device", "@language": "en" },
"location": {
"@type": "Place",
"label": "1010"
},
"temperature": "/energyValue"
}
{
"@context": "coap://external/doc#",
"@type": "doc:EnergyMeterDevice",
"location": {
"@type": "Place",
"label": "301"
}
}
{
"@context": [
"https://w3id.org/semiot/device/commoncontext#",
{ "doc": "http://external/doc#" }
],
"@id": "doc:ApiDocumentation",
"@type": "ApiDocumentation",
"supportedClass": [
{
"@id": "doc:EnergyMeterDevice",
"subClassOf": "Device",
"supportedProperty": {
"property": "location",
"writable": "true",
"label": "Location"
},
"supportedProperty": {
"property": "label",
"writable": "false",
"label": "Label"
},
"supportedOperation": {
"method": "PUT",
"expects": "doc:EnergyMeterDevice",
"returns": "doc:EnergyMeterDevice"
}
},
{
"@id": "doc:EnergyValue",
"@type": "Link",
"range": {
"@id": "doc:EnergyValue",
"subClassOf": "QuantitativeValue",
"label": "Energy (Wh)"
}
}
]
}
{
"@context": "coap://external/doc#",
"@type": "doc:EnergyValue",
"value": "230",
"unitCode": "Wh"
}