The REST API to the example app is described below.
GET /api/v1/balance/{id}/{currency}
curl -i -H 'Accept: application/json' http://localhost:9999/api/v1/balance/{id}/{currency}
Status = 200
Error message = null
Headers = [Content-Type:"application/json"]
Content type = application/json
Body = {"id":1,"accountId":1,"amount":32.45,"currency":"EUR"}
GET /api/v1/treasury/mutation/{id}
curl -i -H 'Accept: application/json' http://localhost:9999/api/v1/treasury/mutation/{id}
Status = 200
Error message = null
Headers = [Content-Type:"application/json"]
Content type = application/json
Body = [
{
"transactionId": 1,
"amount": -33.0,
"partnerName": "Jessica Jones",
"currency": "EUR",
"date": "2023-09-01T12:12:12"
},
{
"transactionId": 2,
"amount": -133.0,
"partnerName": "Wade Wilson",
"currency": "EUR",
"date": "2023-09-02T12:12:12"
}
]