/api/customers/K0002/default-system-integrator application/json; charset=UTF-8
and body:
{
"links": [{
"rel": "defaultSystemIntegrator",
"href": "/api/system-integrators/S0004"
}]
}
Then I should receive HTTP/1.1 204 No Content /api/customers/K0002/default-system-integrator HTTP/1.1 200 OK {
"links": [{
"rel": "defaultSystemIntegrator",
"href": "/api/system-integrators/S0004"
}],
"data": [{
"name": "defaultSystemIntegrator",
"value": "S0004 (New System Integrator)"
}]
}
/api/customers/K0002/default-system-integrator application/json; charset=UTF-8
and body:
{
"links": [{
"rel": "defaultSystemIntegrator",
"href": "/api/system-integrators/S0003"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"detail": "Access denied to [SystemIntegrator] with id [S0003]",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/default-system-integrator application/json; charset=UTF-8
and body:
{
"links": [{
"rel": "defaultSystemIntegrator",
"href": "/api/system-integrators/S0003"
}]
}
Then I should receive HTTP/1.1 400 Bad Request {
"errors": [{
"message": "System Integrator S0003 does not belong to Operator C0002",
"path": "defaultSystemIntegrator",
"value": "/api/system-integrators/S0003"
}]
}
/api/customers/K0002/default-system-integrator application/json; charset=UTF-8
and body
{
"links": [{
"rel": "defaultSystemIntegrator",
"href": "/api/system-integrators/S0002"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0002/default-system-integrator application/json; charset=UTF-8
and body
{
"links": [{
"rel": "defaultSystemIntegrator",
"href": "/api/system-integrators/S0002"
}]
}
Then I should receive HTTP/1.1 403 Forbidden {
"detail": "Required role is missing",
"title": "Access forbidden",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0404/default-system-integrator application/json; charset=UTF-8 HTTP/1.1 404 Not Found {
"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/K0003/default-system-integrator application/json; charset=UTF-8 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/default-system-integrator application/json; charset=UTF-8 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/default-system-integrator application/json; charset=UTF-8 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"
}