/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should receive HTTP/1.1 201 Created with http://localhost:9998/api/customers/K0002/targets/routing-prefix/17{
"href": "/api/customers/K0002/targets/routing-prefix/17"
}
/api/customers/K0002/targets/routing-prefix/17
returns HTTP/1.1 200 OK
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002/blacklist-profiles/43"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002/blacklist-profiles/43"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002/blacklist-profiles/43"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002/blacklist-profiles/43"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should receive HTTP/1.1 201 Created {
"href": "/api/customers/K0002/targets/routing-prefix/17"
}
/api/customers/K0002/targets/routing-prefix/17
returns HTTP/1.1 200 OK
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002/blacklist-profiles/43"
}]
}
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "language",
"value": "en"
}, {
"name": "dialPrefix",
"value": "9"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "language",
"value": "en"
}, {
"name": "dialPrefix",
"value": "9"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "language",
"value": "en"
}, {
"name": "dialPrefix",
"value": "9"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "language",
"value": "en"
}, {
"name": "dialPrefix",
"value": "9"
}]
}
Then I should receive HTTP/1.1 201 Created {
"href": "/api/customers/K0002/targets/routing-prefix/17"
}
/api/customers/K0002/targets/routing-prefix/17
returns HTTP/1.1 200 OK
with following body:
{
"data": [{
"name": "language",
"value": "en"
}, {
"name": "dialPrefix",
"value": "9"
}]
}
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "costCenter",
"value": "Cost Center"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "costCenter",
"value": "Cost Center"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "costCenter",
"value": "Cost Center"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "costCenter",
"value": "Cost Center"
}]
}
Then I should receive HTTP/1.1 201 Created {
"href": "/api/customers/K0002/targets/routing-prefix/17"
}
/api/customers/K0002/targets/routing-prefix/17
returns HTTP/1.1 200 OK
with following body:
{
"data": [{
"name": "costCenter",
"value": "Cost Center"
}]
}
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "dialPrefix",
"value": "48"
}]
}
Then I should receive HTTP/1.1 403 Forbidden
with following body:
{
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "dialPrefix",
"value": "48"
}]
}
Then I should receive HTTP/1.1 403 Forbidden
with following body:
{
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "dialPrefix",
"value": "48"
}]
}
Then I should receive HTTP/1.1 403 Forbidden
with following body:
{
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}, {
"name": "dialPrefix",
"value": "48"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Invalid value for dialPrefix '48', expected no value, 0 or 9",
"path": "dialPrefix",
"value": "48"
}]
}
/api/customers/K0002/targets/routing-prefix/17
returns HTTP/1.1 404 Not Found
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"title": "Invalid resource type",
"detail": "Resource at /api/customers/K0002 is of incorrect type",
"described_by": "http://api.nfon.net/probs/invalid-resource-type"
}
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": null
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": null
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": null
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": null
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "Blacklist Profile cannot be null",
"path": "blacklistProfile",
"value": null
}]
}
/api/customers/K0002/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should receive 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/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002/blacklist-profiles/43"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/K0003/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002/blacklist-profiles/43"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"detail": "Access denied to [Customer] with id [K0003]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002/blacklist-profiles/43"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"detail": "Access denied to [Customer] with id [K0003]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"links": [{
"rel": "blacklistProfile",
"href": "/api/customers/K0002/blacklist-profiles/43"
}],
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "Given Blacklist Profile with ID 43 is not available for Customer K0003",
"path": "blacklistProfile"
}]
}
/api/customers/K404/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should get HTTP/1.1 403 Forbidden {
"detail": "Access denied to [Customer] with id [K404]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K404/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should get HTTP/1.1 403 Forbidden {
"detail": "Access denied to [Customer] with id [K404]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K404/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should get HTTP/1.1 403 Forbidden {
"detail": "Access denied to [Customer] with id [K404]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K404/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
Then I should get HTTP/1.1 404 Not Found {
"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/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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/targets/routing-prefix as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "17"
}, {
"name": "displayName",
"value": "Routing Prefix Extension"
}]
}
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"
}