Given I am
authenticated as Customer
K0002
And
there is a multidigit IVR Service with service number
123
and max number of digits set to
3
-
and there is a Phone Extension
with ID 1000
and the Key Assignment which assigns
4 to this Phone Extension
-
and there is another Phone Extension
with ID 2000
and the Key Assignment which assigns
* to this Phone Extension
-
and there is another Phone Extension
with ID 3000
and the Key Assignment which assigns
103 to this Phone Extension
When I send
/api/customers/K0002/targets/ivr-services/123/key-assignments
Then I should receive
HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/targets/ivr-services/123/key-assignments?_offset=0&_pagesize=16",
"offset": 0,
"total": 3,
"size": 3,
"links": [{
"rel": "availableTargets",
"href": "/api/customers/K0002/targets/ivr-services/123/key-assignments/target-available-destinations"
}],
"items": [{
"href": "/api/customers/K0002/targets/ivr-services/123/key-assignments/4",
"links": [],
"data": [{
"name": "number",
"value": "4"
}, {
"name": "targetName",
"value": "Extension #567"
}]
}, {
"href": "/api/customers/K0002/targets/ivr-services/123/key-assignments/asterisk",
"links": [],
"data": [{
"name": "number",
"value": "*"
}, {
"name": "targetName",
"value": "Extension #888"
}]
}, {
"href": "/api/customers/K0002/targets/ivr-services/123/key-assignments/103",
"links": [],
"data": [{
"name": "number",
"value": "103"
}, {
"name": "targetName",
"value": "Extension #999"
}]
}]
}