- All responses will have the form
{
"data": "",
"message": "",
}
GET /digits
200 OK
on success
[
{
"identifier": "2123",
"name": "3",
},
{
"identifier": "4732",
"name": "9"
}
]
POST /digits
"identifier":string
: a globally unique identifier for this digit"name":
: name this digit eg. 0-9
If a device with the given identifier already exists, the existing device will be overwritten
{
"identifier": "3829",
"name": "6"
}
GET /device/<identifier>
404 Not Found
if the identifier does not exist200 OK
on success
{
"identifier": "3829",
"name": "6"
}
DELETE /digits/<identifier>
404 Not Found
if the identifier does not exist204 No Content
on success