/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab (using application/json;charset=UTF-8) with body
{
"data": [{
"name": "license",
"value": "newLicenseKey"
}, {
"name": "suppressLineno",
"value": "DEFAULT"
}]
}
Then I should get HTTP/1.1 204 No Content
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab returns:
{
"data": [{
"name": "license",
"value": "newLicenseKey"
}, {
"name": "suppressLineno",
"value": "DEFAULT"
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab (using application/json;charset=UTF-8) with body
{
"data": [{
"name": "note",
"value": "my personal note for this device"
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab returns:
{
"data": [{
"name": "note",
"value": "my personal note for this device"
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab (using application/json;charset=UTF-8) with body
{
"data": [{
"name": "note",
"value": ""
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab returns:
{
"data": [{
"name": "note",
"value": null
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab (using application/json;charset=UTF-8) with body
{
"data": [{
"name": "note",
"value": null
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab returns:
{
"data": [{
"name": "note",
"value": null
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab (using application/json;charset=UTF-8) with body
{
"links": [{
"rel": "firmware",
"href": "/api/customers/K0002/device-types/nreception/firmwares/555.321"
}, {
"rel": "site",
"href": "/api/customers/K0002/sites/54526563554535"
}]
}
Then I should get HTTP/1.1 204 No Content
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab returns:
{
"links": [{
"rel": "firmware",
"href": "/api/customers/K0002/device-types/nreception/firmwares/555.321"
}, {
"rel": "site",
"href": "/api/customers/K0002/sites/54526563554535"
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab (using application/json;charset=UTF-8) with body
{
"data": [{
"name": "license",
"value": ""
}]
}
Then I should get HTTP/1.1 204 No Content
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab returns:
{
"data": [{
"name": "license",
"value": ""
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab (using application/json; charset=UTF-8)
with following body:
{
"links": [{
"rel": "firmware",
"href": "/api/customers/K0002/device-types/OtherDeviceType/firmwares/150.123"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Firmware is invalid for selected device type",
"detailMessage": "Provided firmware with releaseVersion 150.123 is invalid for device with type nreception",
"path": "firmware"
}]
}
/api/customers/K0002/devices/operator-panel/01-23-45-67-89-ab (using application/json; charset=UTF-8)
with following body:
{
"links": [{
"rel": "site",
"href": "/api/customers/K0003/sites/a062000000K0003"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Site not allowed",
"detailMessage": "Site [a062000000K0003] is not reachable for customer [K0002]",
"path": "site"
}]
}
/api/customers/K0404/devices/operator-panel/01-23-45-67-89-ab
using application/json;charset=UTF-8 {
"data": [{
"name": "license",
"value": "newLicenseKey"
}]
}
Then I should receive 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/K0002/devices/operator-panel/01-23-45-67-89-ab (using application/json;charset=UTF-8) with body
{
"data": [{
"name": "license",
"value": "newLicenseKey"
}]
}
Then I should get HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0002]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/devices/operator-panel/01-23-45-67-89-ab
using application/json;charset=UTF-8 {
"data": [{
"name": "license",
"value": "newLicenseKey"
}]
}
Then I should receive 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/operator-panel/01-23-45-67-89-ab
using application/json;charset=UTF-8 {
"data": [{
"name": "license",
"value": "newLicenseKey"
}]
}
Then I should receive 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"
}