URL : https://bank.raspicluster.pl/api/account/:UUID
Method : GET
Required Body : {}
Condition : Account is found
Code : 200
{
"status": "OK",
"message": "SUCCESS",
"data": {
"fullName": "John Doe",
"accountNumber": "5c6c3d72-2be9-4bcd-aac8-15cd4dd58ba1",
"balance": 1000,
"transactionToReservedBalance": {},
"events": [
{
"fullName": "John Doe",
"eventType": "ACCOUNT_CREATED_EVENT",
"aggregateUUID": "5c6c3d72-2be9-4bcd-aac8-15cd4dd58ba1",
"createdAt": "Jan 4, 2019 12:35:54 PM"
}
],
"transactions": {},
"createdAt": "Jan 4, 2019 12:35:54 PM",
"lastUpdatedAt": "Jan 4, 2019 12:35:54 PM",
"links": [
{
"rel": "self",
"href": "/api/account/5074d966-8887-4453-ac98-62755f426c64",
"method": "get"
},
{
"rel": "self",
"href": "/api/account/5074d966-8887-4453-ac98-62755f426c64/changeFullName",
"method": "put"
}
]
},
"links": [
{
"rel": "self",
"href": "/api/account/5074d966-8887-4453-ac98-62755f426c64",
"method": "get"
},
{
"rel": "self",
"href": "/api/account/5074d966-8887-4453-ac98-62755f426c64/changeFullName",
"method": "put"
}
]
}
Condition : UUID in path is not valid
Code : 400
{
"status": "ERROR",
"message": "There are validation errors",
"data": {
"uuid": [
"Is not a valid UUID value"
]
}
}
Condition : Account is not found
Code : 404
{
"status": "ERROR",
"message": "Account with ID: 5c6c3d72-2be9-4bcd-aac8-15cd4dd58ba5 was not found"
}