/api/accounts/S123456 HTTP/1.1 200 OK
with following body:
{
"href": "/api/accounts/S123456",
"links": [{
"rel": "sites",
"href": "/api/accounts/S123456/sites"
}],
"data": [{
"name": "salesForceId",
"value": "S123456"
}]
}
/api/accounts/existingAccount HTTP/1.1 403 Forbidden
with following body:
{
"title": "Access forbidden",
"detail": "Required role is missing",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/accounts/notExistingAccount HTTP/1.1 404 Not Found
with following body:
{
"title": "Account not found",
"detail": "Account with Salesforce ID notExistingAccount not found",
"described_by": "http://api.nfon.net/probs/account-not-found"
}
/api/accounts/existingAccount HTTP/1.1 403 Forbidden
With following body
{
"title": "Access forbidden",
"detail": "Required role is missing",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/accounts/existingAccount HTTP/1.1 403 Forbidden
With following body
{
"title": "Access forbidden",
"detail": "Required role is missing",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}