/api/customers/K0002/targets/ivr-services/17
Then I should receive HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/targets/ivr-services/17",
"links": [{
"rel": "announcement",
"href": "/api/customers/K0002/announcements/41"
}, {
"rel": "destinationOnTimeout",
"href": "/api/customers/K0002/targets/ivr-services/17/timeout"
}, {
"rel": "ivrKeyAssignments",
"href": "/api/customers/K0002/targets/ivr-services/17/key-assignments"
}, {
"rel": "inboundTrunkNumbers",
"href": "/api/customers/K0002/targets/ivr-services/17/inbound-trunk-numbers"
}],
"data": [{
"name": "displayName",
"value": "IVR Service"
}, {
"name": "extensionNumber",
"value": "43"
}, {
"name": "interpretUnknownAsExtension",
"value": true
}, {
"name": "maxNumberOfDigits",
"value": 2
}]
}
/api/customers/K0002/targets/ivr-services/17
Then I should receive HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/targets/ivr-services/17",
"data": []
}
/api/customers/K0002/targets/ivr-services/404
Then I should receive HTTP/1.1 404 Not Found
with following body:
{
"title": "IVR Service not found",
"detail": "IVR Service with service number 404 not found",
"described_by": "http://api.nfon.net/probs/ivr-service-not-found"
}
/api/customers/K0002/targets/ivr-services/17
Then I should receive 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/K404/targets/ivr-services/17
Then I should receive HTTP/1.1 404 Not Found
with following body:
{
"title": "Customer not found",
"detail": "Customer with identifier K404 has not been found",
"described_by": "http://api.nfon.net/probs/customer-not-found"
}
/api/customers/K0003/targets/ivr-services/123 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/targets/ivr-services/123 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"
}