Given I am
authenticated as Customer
K0002
and
there is a Phone Extension with extension number
201
and
there is another Phone Extension with extension number
402
and there are devices:
-
A standard device with Id ABCDEF012345
attached to Phone Extension 201
-
A standard device with Id ABCDEF012346 exists,
which has been created at 2015-10-12 04:25
with note: "test note for ABCDEF012346"
-
A XCAPI device with Id XCAPI1 exists,
which has been created at 2015-10-12 04:25
with note: "test note for XCAPI1
-
A XCAPI device with Id XCAPI2 exists,
which is attached to Phone Extension 402
which has been created at 2015-10-12 04:25
with note: "test note for XCAPI2
-
A base device with Id BASE00000001
When I send
/api/customers/K0002/targets/phone-extensions/available-devices
Then I should receive
HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/targets/phone-extensions/available-devices?_offset=0&_pagesize=16&_orderBy=deviceId&_order=ASC",
"offset": 0,
"total": 3,
"size": 3,
"links": [],
"items": [{
"href": "/api/customers/K0002/devices/standard/ABCDEF012346",
"links": [],
"data": [{
"name": "deviceType",
"value": "standard"
}, {
"name": "deviceId",
"value": "ABCDEF012346"
}, {
"name": "uniqueIdentifier",
"value": "ABCDEF012346"
}, {
"name": "extension",
"value": null
}, {
"name": "created",
"value": "2015-10-12 04:25"
}, {
"name": "active",
"value": true
}, {
"name": "deviceMasterCategory",
"value": "STANDARD"
}, {
"name": "deviceCategory",
"value": "category"
}, {
"name": "masterCategory",
"value": "STANDARD"
}, {
"name": "category",
"value": "category"
}, {
"name": "site",
"value": "Dummy site K0002"
}, {
"name": "siteName",
"value": "Dummy site K0002"
}, {
"name": "siteStreet",
"value": ""
}, {
"name": "siteZip",
"value": ""
}, {
"name": "siteCity",
"value": ""
}, {
"name": "siteState",
"value": null
}, {
"name": "siteCountry",
"value": ""
}, {
"name": "siteSalesForceId",
"value": "1"
}, {
"name": "note",
"value": "test note for ABCDEF012346"
}]
}, {
"href": "/api/customers/K0002/devices/xcapi/XCAPI1",
"links": [],
"data": [{
"name": "deviceType",
"value": "XCAPI1"
}, {
"name": "deviceId",
"value": "XCAPI1"
}, {
"name": "uniqueIdentifier",
"value": "XCAPI1"
}, {
"name": "extension",
"value": null
}, {
"name": "created",
"value": "2015-10-12 04:25"
}, {
"name": "active",
"value": true
}, {
"name": "deviceMasterCategory",
"value": "UNPROVISIONED_SIP"
}, {
"name": "deviceCategory",
"value": "category"
}, {
"name": "masterCategory",
"value": "UNPROVISIONED_SIP"
}, {
"name": "category",
"value": "category"
}, {
"name": "site",
"value": "Dummy site K0002"
}, {
"name": "siteName",
"value": "Dummy site K0002"
}, {
"name": "siteStreet",
"value": ""
}, {
"name": "siteZip",
"value": ""
}, {
"name": "siteCity",
"value": ""
}, {
"name": "siteState",
"value": null
}, {
"name": "siteCountry",
"value": ""
}, {
"name": "siteSalesForceId",
"value": "1"
}, {
"name": "note",
"value": "test note for XCAPI1"
}]
}, {
"href": "/api/customers/K0002/devices/xcapi/XCAPI2",
"links": [],
"data": [{
"name": "deviceType",
"value": "XCAPI2"
}, {
"name": "deviceId",
"value": "XCAPI2"
}, {
"name": "uniqueIdentifier",
"value": "XCAPI2"
}, {
"name": "extension",
"value": "402"
}, {
"name": "created",
"value": "2015-10-12 04:25"
}, {
"name": "active",
"value": true
}, {
"name": "deviceMasterCategory",
"value": "UNPROVISIONED_SIP"
}, {
"name": "deviceCategory",
"value": "category"
}, {
"name": "masterCategory",
"value": "UNPROVISIONED_SIP"
}, {
"name": "category",
"value": "category"
}, {
"name": "site",
"value": "Dummy site K0002"
}, {
"name": "siteName",
"value": "Dummy site K0002"
}, {
"name": "siteStreet",
"value": ""
}, {
"name": "siteZip",
"value": ""
}, {
"name": "siteCity",
"value": ""
}, {
"name": "siteState",
"value": null
}, {
"name": "siteCountry",
"value": ""
}, {
"name": "siteSalesForceId",
"value": "1"
}, {
"name": "note",
"value": "test note for XCAPI2"
}]
}]
}