/api/customers/K0002/announcements/15 HTTP/1.1 200 OK
with following body:
{
"href": "/api/customers/K0002/announcements/15",
"links": [],
"data": [{
"name": "name",
"value": "Welcome"
}, {
"name": "type",
"value": "MUSIC_ON_HOLD"
}, {
"name": "duration",
"value": 10
}]
}
/api/customers/K0002/announcements/15 with header audio/x-wavHTTP/1.1 200 OK
with audio/x-wav
and response body is equal to ./src/test/resources/net/nfon/portal/api/customer/announcement/announcement.wav content attachment; filename="announcement.wav"
/api/customers/K0002/announcements/15 HTTP/1.1 400 Bad Request
with following body:
{
"title": "Announcement metadata not found",
"detail": "Announcement with id 15 has missing details. Remove it and upload again.",
"described_by": "http://api.nfon.net/probs/announcement-metadata-not-found"
}
/api/customers/K0404/announcements/15 HTTP/1.1 404 Not Found
with following body:
{
"title": "Customer not found",
"detail": "Customer with identifier K0404 has not been found",
"described_by": "http://api.nfon.net/probs/customer-not-found"
}
/api/customers/K0002/announcements/404 HTTP/1.1 404 Not Found
with following body:
{
"title": "Announcement not found",
"detail": "Announcement with id 404 has not been found",
"described_by": "http://api.nfon.net/probs/announcement-not-found"
}
/api/customers/K0002/announcements/15 HTTP/1.1 403 Forbidden
with following body:
{
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0002]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/announcements/15 HTTP/1.1 403 Forbidden
With following body
{
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/announcements/15 HTTP/1.1 403 Forbidden
With following body
{
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}