/api/customers/K0002/targets/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0002/targets/HANGUP"
}],
"data": [{
"name": "joinEmpty",
"value": false
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/queue-services/345/destination-on-rejection HTTP/1.1 200 OK {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0002/targets/HANGUP"
}],
"data": [{
"name": "joinEmpty",
"value": false
}]
}
/api/customers/K0002/targets/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0002/targets/HANGUP"
}],
"data": [{
"name": "joinEmpty",
"value": true
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "Cannot set destinationOnRejection if joinEmpty is enabled"
}]
}
/api/customers/K0002/targets/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0002/targets/HANGUP"
}],
"data": [{
"name": "joinEmpty",
"value": false
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "Operation not allowed for OUTBOUND direction"
}]
}
/api/customers/K0002/targets/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0002/targets/NO_ACTION"
}],
"data": [{
"name": "joinEmpty",
"value": true
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0002/targets/REPEAT"
}],
"data": [{
"name": "joinEmpty",
"value": true
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "Destination on rejection [REPEAT] is not allowed"
}]
}
/api/customers/K0002/targets/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": null
}],
"data": [{
"name": "joinEmpty",
"value": true
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/queue-services/404/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0002/targets/HANGUP"
}],
"data": [{
"name": "joinEmpty",
"value": false
}]
}
Then I should receive HTTP/1.1 404 Not Found {
"title": "Queue not found",
"detail": "Queue with serviceNumber 404 not found",
"described_by": "http://api.nfon.net/probs/queue-not-found"
}
/api/customers/K404/targets/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0002/targets/HANGUP"
}],
"data": [{
"name": "joinEmpty",
"value": false
}]
}
Then I should receive 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/K0002/targets/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0002/targets/HANGUP"
}],
"data": [{
"name": "joinEmpty",
"value": false
}]
}
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/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0003/targets/HANGUP"
}],
"data": [{
"name": "joinEmpty",
"value": false
}]
}
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/queue-services/345/destination-on-rejection
as application/json; charset=utf-8 {
"links": [{
"rel": "destinationOnRejection",
"href": "/api/customers/K0003/targets/HANGUP"
}],
"data": [{
"name": "joinEmpty",
"value": false
}]
}
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"
}