Backend and REST API for a simple Banking Application
To get access to client methods, first you need to SignUp/LogIn. To SignUp/LogIn, you can do it with:
- Postman or similar
- Swagger -> It's implanted in this system (http://localhost:8080/swagger-ui.html)
- Or our internal UI at API CONNECT(http://localhost:8080/api)
- Register a new client [POST] »» /api/signup
Post model:
{
"fullName": "string",
"email": "string",
"password": "string"
}
- Client initiate session [POST] »» /api/login
Post model:
{
"email": "string",
"password": "string"
}
- Client ends session [POST] »» /api/logout
- Return client's profile [GET] »» /api/myprofile
- Return all clients in system [ONLY ALLOWED PASSING THE SECRET KEY AS PARAMETER]-> [GET] »» /api/client/all/{secretKey}
secretKey by example on system = 3861
- Return all accounts in system [ONLY ALLOWED PASSING THE SECRET KEY AS PARAMETER]-> [GET] »» /api/account/all/{secretKey}
secretKey by example on system = 3861
- Return client's account balance [GET] »» /api/account/myaccount
- Register deposit transaction on client's account [POST] »» /api/account/myaccount/deposit
Post model:
{
"value": "0",
}
- Register withdrawal transaction on client's account [POST] »» /api/account/myaccount/withdrawal
Post model:
{
"value": "0",
}
- Return client account statment [GET] »» /api/account/myaccount/statement
- Java 8
- Spring Boot
- PostgreSQL
- Maven
- Swagger
- Pedro Azzam - Web - pedroazzam.me