Last active
January 5, 2016 22:41
-
-
Save landlessness/b723939545bed0ed7e19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"class": [ | |
"device", | |
"car" | |
], | |
"properties": { | |
"id": "{id}", | |
"name": "Günther's Car", | |
"type": "car", | |
"state": "ready" | |
}, | |
"entities": [ | |
{ | |
"class": [ "capabilities", "collection" ], | |
"rel": [ "http://rels.zettajs.io/capabilities" ] | |
}, | |
{ | |
"class": ["capability.battery", "http://rels.zettajs.io/capability"], | |
"properties": { | |
"name": "Primary Battery", | |
}, | |
"links": [ | |
{ | |
"rel": [ | |
"self" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}/capabilities/primaryBattery" | |
}, | |
{ | |
"title": "Günther's Car", | |
"rel": [ | |
"up", | |
"http://rels.zettajs.io/device" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}" | |
}, | |
{ | |
"rel": [ | |
"http://rels.zettajs.io/type", | |
"describedby" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/meta/capability.battery" | |
}, | |
{ | |
"title": "state", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=primaryBattery%2F{id}%2Fstate" | |
}, | |
{ | |
"title": "batteryValue", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=primaryBattery%2F{id}%2FbatteryValue" | |
}, | |
{ | |
"title": "logs", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=primaryBattery%2F{id}%2Flogs" | |
} | |
] | |
}, | |
{ | |
"class": ["capability.switch", "http://rels.zettajs.io/capability"], | |
"properties": { | |
"name": "Ignition", | |
}, | |
"links": [ | |
{ | |
"rel": [ | |
"self" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}/capabilities/ignition" | |
}, | |
{ | |
"title": "Günther's Car", | |
"rel": [ | |
"up", | |
"http://rels.zettajs.io/device" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}" | |
}, | |
{ | |
"rel": [ | |
"http://rels.zettajs.io/type", | |
"describedby" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/meta/capability.switch" | |
}, | |
{ | |
"title": "state", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=ignition%2F{id}%2Fstate" | |
}, | |
{ | |
"title": "switch", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=ignition%2F{id}%2Fswitch" | |
}, | |
{ | |
"title": "logs", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=primaryBattery%2F{id}%2Flogs" | |
} | |
], | |
"actions": [ | |
{ | |
"class": [ | |
"transition", | |
"capability.switch.on" | |
], | |
"name": "change", | |
"method": "POST", | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}", | |
"fields": [ | |
{ | |
"name": "action", | |
"type": "hidden", | |
"value": "on" | |
} | |
] | |
}, | |
{ | |
"class": [ | |
"transition", | |
"capability.switch.off" | |
], | |
"name": "change", | |
"method": "POST", | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}", | |
"fields": [ | |
{ | |
"name": "action", | |
"type": "hidden", | |
"value": "off" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"class": ["capability.musicPlayer", "http://rels.zettajs.io/capability"], | |
"properties": { | |
"name": "Infotainment System", | |
}, | |
"links": [ | |
{ | |
"rel": [ | |
"self" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}/capabilities/infotainmentSystem" | |
}, | |
{ | |
"title": "Günther's Car", | |
"rel": [ | |
"up", | |
"http://rels.zettajs.io/device" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}" | |
}, | |
{ | |
"rel": [ | |
"http://rels.zettajs.io/type", | |
"describedby" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/meta/capability.musicPlayer" | |
}, | |
{ | |
"title": "state", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=infotainmentSystem%2F{id}%2Fstate" | |
}, | |
{ | |
"title": "status", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=infotainmentSystem%2F{id}%status" | |
}, | |
{ | |
"title": "level", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=infotainmentSystem%2F{id}%level" | |
}, | |
{ | |
"title": "trackDescription", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=infotainmentSystem%2F{id}%trackDescription" | |
}, | |
{ | |
"title": "logs", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=primaryBattery%2F{id}%2Flogs" | |
} | |
], | |
"actions": [ | |
{ | |
"class": [ | |
"transition", | |
"capability.infotainmentSystem.play" | |
], | |
"name": "change", | |
"method": "POST", | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}", | |
"fields": [ | |
{ | |
"name": "action", | |
"type": "hidden", | |
"value": "play" | |
} | |
] | |
}, | |
{ | |
"class": [ | |
"transition", | |
"capability.infotainmentSystem.pause" | |
], | |
"name": "change", | |
"method": "POST", | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}", | |
"fields": [ | |
{ | |
"name": "action", | |
"type": "hidden", | |
"value": "pause" | |
} | |
] | |
} | |
] | |
} | |
], | |
"links": [ | |
{ | |
"rel": [ | |
"self" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}" | |
}, | |
{ | |
"title": "VerizonConnectedCars", | |
"rel": [ | |
"up", | |
"http://rels.zettajs.io/server" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars" | |
}, | |
{ | |
"rel": [ | |
"http://rels.zettajs.io/type", | |
"describedby" | |
], | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/meta/display" | |
}, | |
{ | |
"title": "state", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=car%2F{id}%2Fstate" | |
}, | |
{ | |
"title": "prndlGear", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=display%2F{id}%prndlGear" | |
}, | |
{ | |
"title": "logs", | |
"rel": [ | |
"monitor", | |
"http://rels.zettajs.io/object-stream" | |
], | |
"href": "ws://api.connectedcars.verizon.com/servers/VerizonConnectedCars/events?topic=display%2F{id}%2Flogs" | |
} | |
], | |
"actions": [ | |
{ | |
"class": [ | |
"transition" | |
], | |
"name": "changePrndlGear", | |
"method": "POST", | |
"href": "http://api.connectedcars.verizon.com/servers/VerizonConnectedCars/devices/{id}", | |
"fields": [ | |
{ | |
"name": "action", | |
"type": "hidden", | |
"value": "changePrndlGear" | |
}, | |
{ | |
"name": "gear", | |
"type": "text" | |
} | |
] | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment