With exception
curl --location --request POST 'http://localhost:8080/deposit/throw' \
--header 'Content-Type: application/json' \
--data-raw '{
"accountNumber": "0000001",
"amount": 1.0
}'
Without exception
curl --location --request POST 'http://localhost:8080/deposit' \
--header 'Content-Type: application/json' \
--data-raw '{
"accountNumber": "0000001",
"amount": 1.0
}'
- jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
- sa
- password
Selects for test
select * from accounts;
select * from deposit_history;