This is a REST API, where you can find operation with bank account. It's small bank ecosystem with registration new customers, transactions and other features.
- Download the source code of the project from the GitHub repository.
- Install dependencies, if any, using your programming language's package manager.
- Run the project on your web server or cloud hosting, if necessary.
- Copy of this repository on your computer
- Just start Spring
Server: Spring Boot, Spring MVC, Spring Data, Java 11, MySQL, Flyway, Hibernate, Lombok, JDBC, JPA, Spring Security (Encoder), Mockito, JUnit
List the names of the authors who have contributed to the project and its maintenance.
If you have issues, questions, or suggestions, please create a new issue on GitHub, and we will do our best to assist you.
{
"id": 1,
"cardNumber": "1111222233334444",
"code": "1234",
"account": {
"id": 1,
"balance": 1.0,
"accountHistory": [
{
"id": 6,
"value": 999.0,
"transaction_history": "2023-08-04",
"transactionType": "Spend"
}
]
}
},
GET /api/v1/account/{id}/info
Get information about the account and transaction history of the user by ID.
GET /api/v1/account/{id}/history
Get transaction history for a user account by their ID.
POST /api/v1/user/transaction
Create a transaction, where you need to provide the sender's card data, receiver's information, and the amount in the request body. Example body:
{
"fromCard":1111222233334444,
"toCard":5555666677778888,
"balance":999
}
POST /api/v1/user/login
User login endpoint, returns true or false. Example body:
{
"card_number":"3111222233334443",
"code":1233
}
POST /api/v1/user/login/client
User login endpoint, returns client information if the login is successful. Example body:
{
"card_number":"3111222233334443",
"code":1233
}
You will get this body
{
"id": 7,
"cardNumer": "3111222233334443",
"account": {
"id": 7,
"balance": 0,
"accountHistory": []
}
}
POST /api/v1/user/registration
Register a new user. Example body:
{
"name":"Orest",
"code":"1235"
}
GET /api/v1/user/client/{id}
Get all data about a user by their identifier.