Skip to content

Instantly share code, notes, and snippets.

@mdobson
Created June 6, 2014 16:52
Show Gist options
  • Save mdobson/32bfbb8659b669448205 to your computer and use it in GitHub Desktop.
Save mdobson/32bfbb8659b669448205 to your computer and use it in GitHub Desktop.
API Example
{
"class":["device"],
"properties": {
"id":"E2A9E247-1F9C-47B8-9A6B-813AD63F3D58",
"name":"Matt's sound sensor",
"type":"sound",
"state":"ready",
"amplitude":10
},
"links":[
{
"title":"amplitude",
"rel":["monitor", "http://rels.zettajs.io/object-stream"],
"href":"ws://zetta-cloud.herokuapp.com/devices/E2A9E247-1F9C-47B8-9A6B-813AD63F3D58/amplitude"
},
{
"rel":["self"],
"href":"http://zetta-cloud.herokuapp.com/devices/E2A9E247-1F9C-47B8-9A6B-813AD63F3D58/"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment