/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab
using application/json; charset=UTF-8 HTTP/1.1 200 OK
With following body:
{
"href": "/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab",
"links": [{
"rel": "deviceType",
"href": "/api/customers/K0002/device-types/nreception"
}, {
"rel": "extension",
"href": null
}, {
"rel": "firmware",
"href": "/api/customers/K0002/device-types/nreception/firmwares/150.123"
}, {
"rel": "activation",
"href": "/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab/activate"
}, {
"rel": "site",
"href": "/api/customers/K0002/sites/54526563554535"
}],
"data": [{
"name": "macAddress",
"value": "01-23-45-67-89-ab"
}, {
"name": "suppressLineno",
"value": "DEFAULT"
}, {
"name": "active",
"value": true
}, {
"name": "note",
"value": null
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab",
"links": [{
"rel": "firmware",
"href": "/api/customers/K0002/device-types/nreception/firmwares/01.56"
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab HTTP/1.1 404 Not Found with body
{
"title": "Device not found",
"detail": "Device with unique identifier 01-23-45-67-89-ab has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0404/devices/operator-panel/01-23-45-67-89-ab HTTP/1.1 404 Not Found {
"described_by": "http://api.nfon.net/probs/customer-not-found",
"title": "Customer not found",
"detail": "Customer with identifier K0404 has not been found"
}
/api/customers/K0003/devices/operator-panel/01-23-45-67-89-ab HTTP/1.1 403 Forbidden with body
{
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab
using application/json; charset=UTF-8 HTTP/1.1 200 OK
With following body:
{
"href": "/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab",
"links": [{
"rel": "deviceType",
"href": "/api/customers/K0002/device-types/nreception"
}, {
"rel": "firmware",
"href": "/api/customers/K0002/device-types/nreception/firmwares/150.123"
}, {
"rel": "activation",
"href": "/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab/activate"
}, {
"rel": "site",
"href": "/api/customers/K0002/sites/54526563554535"
}],
"data": [{
"name": "macAddress",
"value": "01-23-45-67-89-ab"
}, {
"name": "active",
"value": true
}, {
"name": "sipUsername",
"value": "K0002"
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab
using application/json; charset=UTF-8 HTTP/1.1 200 OK
With following body:
{
"href": "/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab",
"links": [{
"rel": "deviceType",
"href": "/api/customers/K0002/device-types/nreception"
}, {
"rel": "firmware",
"href": "/api/customers/K0002/device-types/nreception/firmwares/150.123"
}, {
"rel": "activation",
"href": "/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab/activate"
}, {
"rel": "site",
"href": "/api/customers/K0002/sites/54526563554535"
}],
"data": [{
"name": "macAddress",
"value": "01-23-45-67-89-ab"
}, {
"name": "active",
"value": true
}, {
"name": "sipUsername",
"value": "K0002"
}, {
"name": "sipSecret",
"value": "kSIzxm76EE2"
}]
}
/api/customers/K0003/operator-panel/01-23-45-67-89-ab HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/operator-panel/01-23-45-67-89-ab HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}