/api/customers/K0002/operator-details application/json; charset=UTF-8 {
"links": [{
"rel": "pbxGroup",
"href": "/api/operators/C0002/pbx-groups/New%20Pbx%20Group"
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/operator-details HTTP/1.1 200 OK {
"href": "/api/customers/K0002/operator-details",
"links": [{
"rel": "systemIntegrator",
"href": "/api/system-integrators/S0002"
}, {
"rel": "pbxGroup",
"href": "/api/operators/C0002/pbx-groups/New%20Pbx%20Group"
}, {
"rel": "availablePbxGroups",
"href": "/api/customers/K0002/available-pbx-groups"
}],
"data": [{
"name": "operator",
"value": "C0002"
}, {
"name": "operatorName",
"value": "C0002"
}, {
"name": "systemIntegrator",
"value": "S0002"
}, {
"name": "systemIntegratorName",
"value": "S0002"
}, {
"name": "pbxGroupName",
"value": "New Pbx Group"
}, {
"name": "sipServerName",
"value": "New Sip Server"
}]
}
/api/customers/K0002/operator-details HTTP/1.1 200 OK {
"href": "/api/customers/K0002/operator-details",
"links": [{
"rel": "operator",
"href": "/api/operators/C0002"
}, {
"rel": "systemIntegrator",
"href": "/api/system-integrators/S0002"
}, {
"rel": "pbxGroup",
"href": "/api/operators/C0002/pbx-groups/New%20Pbx%20Group"
}, {
"rel": "sipServer",
"href": "/api/sip-servers/15"
}, {
"rel": "availablePbxGroups",
"href": "/api/customers/K0002/available-pbx-groups"
}],
"data": [{
"name": "operator",
"value": "C0002"
}, {
"name": "operatorName",
"value": "C0002"
}, {
"name": "systemIntegrator",
"value": "S0002"
}, {
"name": "systemIntegratorName",
"value": "S0002"
}, {
"name": "pbxGroupName",
"value": "New Pbx Group"
}, {
"name": "sipServerName",
"value": "New Sip Server"
}]
}
/api/customers/K0002/operator-details application/json; charset=UTF-8 {
"links": [{
"rel": "pbxGroup",
"href": "/api/operators/C0002/pbx-groups/New%20Pbx%20Group"
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "Pbx Group [New Pbx Group] is not allowed for Customer [K0002]",
"path": "pbxGroup",
"value": "/api/operators/C0002/pbx-groups/New%20Pbx%20Group"
}]
}
/api/customers/K0002/operator-details application/json; charset=UTF-8 {
"links": [{
"rel": "pbxGroup",
"href": "/api/operators/C0003/pbx-groups/New%20Pbx%20Group"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Operator] with id [C0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/operator-details application/json; charset=UTF-8 {
"links": [{
"rel": "pbxGroup",
"href": "/api/operators/C0002/pbx-groups/A%20Pbx%20Group"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0404/operator-details application/json; charset=UTF-8 {
"links": [{
"rel": "pbxGroup",
"href": "/api/operators/C0002/pbx-groups/A%20Pbx%20Group"
}]
}
Then I should receive HTTP/1.1 404 Not Found {
"title": "Customer not found",
"detail": "Customer with identifier K0404 has not been found",
"described_by": "http://api.nfon.net/probs/customer-not-found"
}
/api/customers/K0003/operator-details application/json; charset=UTF-8 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-details application/json; charset=UTF-8 {
"links": [{
"rel": "pbxGroup",
"href": "/api/operators/C0002/pbx-groups/A%20Pbx%20Group"
}]
}
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/operator-details application/json; charset=UTF-8 {
"links": [{
"rel": "pbxGroup",
"href": "/api/operators/C0002/pbx-groups/A%20Pbx%20Group"
}]
}
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"
}