/api/customers/K0002/devices/base/ABCDEF012345/free-ports HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/devices/base/ABCDEF012345/free-ports?_offset=0&_pagesize=16",
"offset": 0,
"total": 2,
"size": 2,
"items": [{
"href": "/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port2",
"data": [{
"name": "port",
"value": "Port2"
}]
}, {
"href": "/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port3",
"data": [{
"name": "port",
"value": "Port3"
}]
}]
}
/api/customers/K0002/devices/base/ABCDEF012345/free-ports HTTP/1.1 404 Not Found
with following body:
{
"title": "Free ports not available for IPEI",
"detail": "Free ports are not available for IPEI device ABCDEF012345",
"described_by": "http://api.nfon.net/probs/free-ports-not-available-for-ipei"
}
/api/customers/K0002/devices/base/ABCDEF012345/free-ports HTTP/1.1 404 Not Found
with following body:
{
"title": "Device not found",
"detail": "Device with unique identifier ABCDEF012345 has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/base/ABCDEF012345/free-ports HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/devices/base/ABCDEF012345/free-ports?_offset=0&_pagesize=16",
"offset": 0,
"total": 1,
"size": 1,
"items": [{
"href": "/api/customers/K0002/devices/base/ABCDEF012345/handsets/Port1",
"data": [{
"name": "port",
"value": "Port1"
}]
}]
}
/api/customers/K0002/devices/base/ABCDEF012345/free-ports HTTP/1.1 403 Forbidden
with following body:
{
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0002]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0404/devices/base/ABCDEF012345/free-ports 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/base/ABCDEF012345/free-ports 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/devices/base/ABCDEF012345/free-ports 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"
}