Java Springboot API
-
URL
For all accounts: http://localhost:8081/accounts/
For all transactions: http://localhost:8081/transaction/
For specific account transaction: http://localhost:8081/transaction/acc?no=321143048Method:
GET
-
Success Response:
- Code: 200 Ok
Sample Content:{ "accountNumber": 123456789, "accountName": "SGSavings123", "accountType": "Savings", "balanceDate": "11/11/2011", "currencyType": "SGD", "openingBalance": 22222.22 }
- Code: 200 Ok
-
Error Response:
- Code: 500 Internal Server Error
- Code: 500 Internal Server Error
-
Usage Instruction Steps:
- Download the project.
- Install all the dependencies: Springboot and Maven
- Run the project, look for "application started" message in console.
- Open browser or postman: hit the api, get the JSON response.
Thanks for reading.