Last active
September 4, 2018 23:30
-
-
Save drasko/ed011c3273c7e75b30133577472bfcb8 to your computer and use it in GitHub Desktop.
EdgeX in Action, Part 3 - Device Response
This file contains 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
{ | |
"id": "5b8ae4da6b950a5e3c029f6f", | |
"name": "countcamera1", | |
"adminState": "UNLOCKED", | |
"operatingState": "ENABLED", | |
"lastConnected": 0, | |
"lastReported": 0, | |
"labels": [ | |
"camera", | |
"counter" | |
], | |
"location": "", | |
"commands": [ | |
{ | |
"created": 1535828161326, | |
"modified": 0, | |
"origin": 0, | |
"id": "5b8ae0c16b950a5e3c029f68", | |
"name": "People", | |
"get": { | |
"path": "/api/v1/devices/{deviceId}/peoplecount", | |
"responses": [ | |
{ | |
"code": "200", | |
"description": "Number of people on camera", | |
"expectedValues": [ | |
"humancount" | |
] | |
}, | |
{ | |
"code": "503", | |
"description": "service unavailable", | |
"expectedValues": [ | |
"cameraerror" | |
] | |
} | |
], | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f68" | |
}, | |
"put": { | |
"path": null, | |
"responses": null, | |
"parameterNames": null, | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f68" | |
} | |
}, | |
{ | |
"created": 1535828161326, | |
"modified": 0, | |
"origin": 0, | |
"id": "5b8ae0c16b950a5e3c029f69", | |
"name": "Dogs", | |
"get": { | |
"path": "/api/v1/devices/{deviceId}/dogcount", | |
"responses": [ | |
{ | |
"code": "200", | |
"description": "Number of dogs on camera", | |
"expectedValues": [ | |
"caninecount" | |
] | |
}, | |
{ | |
"code": "503", | |
"description": "service unavailable", | |
"expectedValues": [ | |
"cameraerror" | |
] | |
} | |
], | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f69" | |
}, | |
"put": { | |
"path": null, | |
"responses": null, | |
"parameterNames": null, | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f69" | |
} | |
}, | |
{ | |
"created": 1535828161326, | |
"modified": 0, | |
"origin": 0, | |
"id": "5b8ae0c16b950a5e3c029f6a", | |
"name": "ScanDepth", | |
"get": { | |
"path": "/api/v1/devices/{deviceId}/scandepth", | |
"responses": [ | |
{ | |
"code": "200", | |
"description": "Get the scan depth", | |
"expectedValues": [ | |
"depth" | |
] | |
}, | |
{ | |
"code": "503", | |
"description": "service unavailable", | |
"expectedValues": [ | |
"cameraerror" | |
] | |
} | |
], | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f6a" | |
}, | |
"put": { | |
"path": "/api/v1/devices/{deviceId}/scandepth", | |
"responses": [ | |
{ | |
"code": "204", | |
"description": "Set the scan depth.", | |
"expectedValues": [] | |
}, | |
{ | |
"code": "503", | |
"description": "service unavailable", | |
"expectedValues": [ | |
"cameraerror" | |
] | |
} | |
], | |
"parameterNames": [ | |
"depth" | |
], | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f6a" | |
} | |
}, | |
{ | |
"created": 1535828161326, | |
"modified": 0, | |
"origin": 0, | |
"id": "5b8ae0c16b950a5e3c029f6b", | |
"name": "SnapshotDuration", | |
"get": { | |
"path": "/api/v1/devices/{deviceId}/snapshotduration", | |
"responses": [ | |
{ | |
"code": "200", | |
"description": "Get the snaphot duration", | |
"expectedValues": [ | |
"duration" | |
] | |
}, | |
{ | |
"code": "503", | |
"description": "service unavailable", | |
"expectedValues": [] | |
} | |
], | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f6b" | |
}, | |
"put": { | |
"path": "/api/v1/devices/{deviceId}/SnapshotDuration", | |
"responses": [ | |
{ | |
"code": "204", | |
"description": "Set the snapshot duration.", | |
"expectedValues": [] | |
}, | |
{ | |
"code": "503", | |
"description": "service unavailable", | |
"expectedValues": [ | |
"cameraerror" | |
] | |
} | |
], | |
"parameterNames": [ | |
"duration" | |
], | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f6b" | |
} | |
}, | |
{ | |
"created": 1535828161326, | |
"modified": 0, | |
"origin": 0, | |
"id": "5b8ae0c16b950a5e3c029f6c", | |
"name": "Counts", | |
"get": { | |
"path": "/api/v1/devices/{deviceId}/counts", | |
"responses": [ | |
{ | |
"code": "200", | |
"description": "Get the people and human counts", | |
"expectedValues": [ | |
"count", | |
"count" | |
] | |
}, | |
{ | |
"code": "503", | |
"description": "service unavailable", | |
"expectedValues": [] | |
} | |
], | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f6c" | |
}, | |
"put": { | |
"path": null, | |
"responses": null, | |
"parameterNames": null, | |
"url": "http://localhost:48082/api/v1/device/5b8ae4da6b950a5e3c029f6f/command/5b8ae0c16b950a5e3c029f6c" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment