/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"data": [{
"name": "displayName",
"value": "new display name"
}, {
"name": "extensionNumber",
"value": "3737"
}, {
"name": "weight",
"value": 7
}, {
"name": "selectionStrategy",
"value": "ROUND_ROBIN"
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/skill-services/345 HTTP/1.1 200 OK application/vnd.collection.next+json {
"href": "/api/customers/K0002/targets/skill-services/345",
"data": [{
"name": "displayName",
"value": "new display name"
}, {
"name": "extensionNumber",
"value": "3737"
}, {
"name": "weight",
"value": 7
}, {
"name": "selectionStrategy",
"value": "ROUND_ROBIN"
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"data": [{
"name": "ringType",
"value": "CUSTOM"
}],
"links": [{
"rel": "musicOnHoldAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/skill-services/345 HTTP/1.1 200 OK application/vnd.collection.next+json {
"href": "/api/customers/K0002/targets/skill-services/345",
"data": [{
"name": "ringType",
"value": "CUSTOM"
}],
"links": [{
"rel": "musicOnHoldAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"links": [{
"rel": "musicOnHoldAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/skill-services/345 HTTP/1.1 200 OK application/vnd.collection.next+json {
"href": "/api/customers/K0002/targets/skill-services/345",
"links": [{
"rel": "musicOnHoldAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
/api/customers/K0002/targets/skill-services/345 as application/json; charset=UTF-8 {
"links": [{
"rel": "musicOnHoldAnnouncement",
"href": null
}]
}
Then I should receive
HTTP/1.1 400 Bad Request
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"data": [{
"name": "ringType",
"value": "RING"
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/skill-services/345 HTTP/1.1 200 OK application/vnd.collection.next+json {
"href": "/api/customers/K0002/targets/skill-services/345",
"data": [{
"name": "ringType",
"value": "RING"
}]
}
/api/customers/K0002/targets/skill-services/345 as application/json; charset=UTF-8 {
"data": [{
"name": "ringType",
"value": null
}]
}
Then I should receive
HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "ringType cannot be null",
"path": "ringType",
"value": null
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"links": [{
"rel": "musicOnHoldAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"errors": [{
"message": "Expected musicOnHoldAnnouncement to be type of [MUSIC_ON_HOLD_SKILL] but was [GENERAL_ANNOUNCEMENT]",
"path": "musicOnHoldAnnouncement",
"value": "/api/customers/K0002/announcements/1010"
}]
}
/api/customers/K0002/targets/skill-services/876 application/json; charset=UTF-8{
"data": [{
"name": "ringType",
"value": "RING"
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"errors": [{
"message": "Option cannot be set for Outbound SkillService",
"path": "ringType",
"value": "RING"
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"data": [{
"name": "displayName",
"value": "new name?"
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"errors": [{
"message": "Display name should not contain these characters: & $ ! ? = | \" { }",
"path": "displayName",
"value": "new name?"
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"links": [{
"rel": "memberAnnouncement",
"href": "/api/customers/K0002/announcements/1"
}]
}
Then I should receive HTTP/1.1 404 Not Found application/api-problem+json {
"title": "Announcement not found",
"detail": "Announcement with id 1 has not been found",
"described_by": "http://api.nfon.net/probs/announcement-not-found"
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"data": [{
"name": "positionAnnouncementInterval",
"value": 11
}, {
"name": "periodicAnnouncementInterval",
"value": 44
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/skill-services/345 HTTP/1.1 200 OK application/vnd.collection.next+json {
"href": "/api/customers/K0002/targets/skill-services/345",
"data": [{
"name": "positionAnnouncementInterval",
"value": 11
}, {
"name": "periodicAnnouncementInterval",
"value": 44
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"links": [{
"rel": "periodicAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/skill-services/345 HTTP/1.1 200 OK application/vnd.collection.next+json {
"href": "/api/customers/K0002/targets/skill-services/345",
"links": [{
"rel": "periodicAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"links": [{
"rel": "periodicAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"errors": [{
"message": "Expected periodicAnnouncement to be type of [GENERAL_ANNOUNCEMENT] but was [MUSIC_ON_HOLD]",
"path": "periodicAnnouncement"
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"links": [{
"rel": "initialAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/targets/skill-services/345 HTTP/1.1 200 OK application/vnd.collection.next+json {
"href": "/api/customers/K0002/targets/skill-services/345",
"links": [{
"rel": "initialAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"links": [{
"rel": "initialAnnouncement",
"href": "/api/customers/K0002/announcements/1010"
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"errors": [{
"message": "Expected initialAnnouncement to be type of [GENERAL_ANNOUNCEMENT] but was [MUSIC_ON_HOLD]",
"path": "initialAnnouncement"
}]
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"data": [{
"name": "positionAnnouncementInterval",
"value": -1
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"detail": "Could not create or update resource due to constraint violations",
"title": "Validation error",
"errors": [{
"message": "must be non-negative",
"path": "positionAnnouncementInterval",
"value": -1
}],
"described_by": "http://api.nfon.net/probs/validation-error"
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"data": [{
"name": "positionAnnouncementInterval",
"value": 1000
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"detail": "Could not create or update resource due to constraint violations",
"title": "Validation error",
"errors": [{
"message": "must be smaller than 1000",
"path": "positionAnnouncementInterval",
"value": 1000
}],
"described_by": "http://api.nfon.net/probs/validation-error"
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"data": [{
"name": "periodicAnnouncementInterval",
"value": -1
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"detail": "Could not create or update resource due to constraint violations",
"title": "Validation error",
"errors": [{
"message": "must be non-negative",
"path": "periodicAnnouncementInterval",
"value": -1
}],
"described_by": "http://api.nfon.net/probs/validation-error"
}
/api/customers/K0002/targets/skill-services/345 application/json; charset=UTF-8{
"data": [{
"name": "periodicAnnouncementInterval",
"value": 1000
}]
}
Then I should receive HTTP/1.1 400 Bad Request application/api-problem+json {
"detail": "Could not create or update resource due to constraint violations",
"title": "Validation error",
"errors": [{
"message": "must be smaller than 1000",
"path": "periodicAnnouncementInterval",
"value": 1000
}],
"described_by": "http://api.nfon.net/probs/validation-error"
}
/api/customers/K0002/targets/skill-services/404 application/json; charset=UTF-8{
"data": []
}
Then I should receive HTTP/1.1 404 Not Found application/api-problem+json {
"title": "Skill service not found",
"detail": "Skill service with serviceNumber 404 not found",
"described_by": "http://api.nfon.net/probs/skill-service-not-found"
}
/api/customers/K404/targets/skill-services/345 application/json; charset=UTF-8{
"data": []
}
Then I should receive HTTP/1.1 404 Not Found application/api-problem+json {
"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/skill-services/345 application/json; charset=UTF-8{
"data": []
}
Then I should receive HTTP/1.1 403 Forbidden application/api-problem+json {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0002]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/targets/skill-services/345 application/json; charset=UTF-8{
"data": []
}
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/skill-services/345 application/json; charset=UTF-8{
"data": []
}
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"
}