/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "displayName",
"value": "New Conference Service"
}, {
"name": "extensionNumber",
"value": "72"
}, {
"name": "language",
"value": "fr"
}, {
"name": "musicIfSingleUser",
"value": true
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "displayName",
"value": "New Conference Service"
}, {
"name": "extensionNumber",
"value": "72"
}, {
"name": "language",
"value": "fr"
}, {
"name": "musicIfSingleUser",
"value": true
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body
{
"data": [{
"name": "userPIN",
"value": "7373"
}, {
"name": "userSignalJoinLeave",
"value": true
}, {
"name": "userAnnounceJoinsLeaves",
"value": true
}, {
"name": "userAnnounceUserCount",
"value": false
}, {
"name": "permanentlyMute",
"value": true
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "userPIN",
"value": "7373"
}, {
"name": "userSignalJoinLeave",
"value": true
}, {
"name": "userAnnounceJoinsLeaves",
"value": true
}, {
"name": "userAnnounceUserCount",
"value": false
}, {
"name": "permanentlyMute",
"value": true
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body
{
"data": [{
"name": "adminPIN",
"value": "1212"
}, {
"name": "adminSignalJoinLeave",
"value": true
}, {
"name": "adminAnnounceJoinsLeaves",
"value": true
}, {
"name": "adminAnnounceUserCount",
"value": true
}, {
"name": "closeAtExit",
"value": false
}, {
"name": "lockUntilEntry",
"value": false
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "adminPIN",
"value": "1212"
}, {
"name": "adminSignalJoinLeave",
"value": true
}, {
"name": "adminAnnounceJoinsLeaves",
"value": true
}, {
"name": "adminAnnounceUserCount",
"value": true
}, {
"name": "closeAtExit",
"value": false
}, {
"name": "lockUntilEntry",
"value": false
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "adminPIN",
"value": "incorrect value"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Invalid PIN number format. PIN must be between 4 and 6 digits long",
"path": "adminPIN",
"value": "incorrect value"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "adminPIN",
"value": "3737"
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "userPIN",
"value": "incorrect value"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Invalid PIN number format. PIN must be between 4 and 6 digits long",
"path": "userPIN",
"value": "incorrect value"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "userPIN",
"value": "3535"
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "userPIN",
"value": "3737"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Admin PIN and User PIN must not be the same"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "userPIN",
"value": "3535"
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "displayName",
"value": "invalid display=name"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Display name should not contain these characters: & $ ! ? = | \" { }",
"path": "displayName",
"value": "invalid display=name"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "displayName",
"value": "Conference Service"
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "displayName",
"value": "this is a way, way, way, way, way, way, way, way, way to long displayName"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Display name should have a length between 1 and 50 characters",
"path": "displayName",
"value": "this is a way, way, way, way, way, way, way, way, way to long displayName"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "displayName",
"value": "Conference Service"
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "0123"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Invalid extension number format. Must not start with the dial-out-prefix (default 0)",
"path": "extensionNumber",
"value": "0123"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "extensionNumber",
"value": "35"
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "12345678901234567890123456789"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Extension number length should not exceed 20 characters",
"path": "extensionNumber",
"value": "12345678901234567890123456789"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "extensionNumber",
"value": "35"
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "extensionNumber",
"value": "12345"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Extension number is not unique.",
"path": "extensionNumber",
"value": "12345"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "extensionNumber",
"value": "35"
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "userAnnounceJoinsLeaves",
"value": true
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Cannot set userAnnounceJoinsLeaves when userSignalJoinLeave is false",
"path": "userAnnounceJoinsLeaves"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "userAnnounceJoinsLeaves",
"value": false
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "userSignalJoinLeave",
"value": false
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "userAnnounceJoinsLeaves",
"value": false
}, {
"name": "userSignalJoinLeave",
"value": false
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "adminAnnounceJoinsLeaves",
"value": true
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"errors": [{
"message": "Cannot set adminAnnounceJoinsLeaves when adminSignalJoinLeave is false",
"path": "adminAnnounceJoinsLeaves"
}]
}
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "adminAnnounceJoinsLeaves",
"value": false
}]
}
/api/customers/K0002/targets/conference-services/123 as application/json; charset=UTF-8
with following body:
{
"data": [{
"name": "adminSignalJoinLeave",
"value": false
}]
}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/targets/conference-services/123 should return
{
"data": [{
"name": "adminAnnounceJoinsLeaves",
"value": false
}, {
"name": "adminSignalJoinLeave",
"value": false
}]
}
/api/customers/K0404/targets/conference-services/123
as application/json; charset=UTF-8
with following body:
{}
Then I should receive HTTP/1.1 404 Not Found application/api-problem+json {
"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/targets/conference-services/123
as application/json; charset=UTF-8
with following body:
{}
Then I should receive 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/targets/conference-services/123
as application/json; charset=UTF-8
with following body:
{}
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/conference-services/123
as application/json; charset=UTF-8
with following body:
{}
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"
}