/api/operators/C0002/rating-profiles
with application/json; charset=UTF-8
and body
{
"data": [{
"name": "name",
"value": "8"
}]
}
Then I should receive HTTP/1.1 201 Created /api/operators/C0002/rating-profiles/8
Then I should receive HTTP/1.1 200 OK
with body
{
"data": [{
"name": "name",
"value": "8"
}, {
"name": "description",
"value": "description 8"
}]
}
/api/operators/C0002/rating-profiles
with application/json; charset=UTF-8
and body
{
"data": [{
"name": "name",
"value": "8"
}]
}
Then I should receive HTTP/1.1 404 Not Found
with body
{
"detail": "Rating Profile 8 has not been found",
"title": "Rating Profile not found",
"described_by": "http://api.nfon.net/probs/rating-profile-not-found"
}
/api/operators/C0002/rating-profiles
with application/json; charset=UTF-8
and body
{
"data": [{
"name": "name",
"value": "8"
}]
}
Then I should receive HTTP/1.1 400 Bad Request
with body
{
"errors": [{
"message": "Rating Profile 8 has already been assigned to Operator C0002"
}]
}
/api/operators/C0002/rating-profiles
with application/json; charset=UTF-8
and body
{
"data": [{
"name": "name",
"value": "8"
}]
}
Then I should receive HTTP/1.1 201 Created
/api/operators/C0002
Then I should receive HTTP/1.1 200 OK
with body
{
"links": [{
"rel": "defaultRatingProfile",
"href": "/api/operators/C0002/rating-profiles/8"
}]
}
/api/operators/C404/rating-profiles
with application/json; charset=UTF-8 HTTP/1.1 404 Not Found application/api-problem+json {
"detail": "Operator C404 has not been found",
"title": "Operator not found",
"described_by": "http://api.nfon.net/probs/operator-not-found"
}
/api/operators/C0002/rating-profiles
with application/json; charset=UTF-8 HTTP/1.1 403 Forbidden application/api-problem+json {
"detail": "Access denied to [Operator] with id [C0002]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/operators/C0002/rating-profiles
with application/json; charset=UTF-8 HTTP/1.1 403 Forbidden application/api-problem+json {
"detail": "Access denied to [Operator] with id [C0002]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/operators/C0002/rating-profiles
with application/json; charset=UTF-8
and body
{
"data": [{
"name": "name",
"value": "8"
}]
}
Then I should receive HTTP/1.1 403 Forbidden application/api-problem+json {
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}