This document provides an overview of the endpoints available in the Bank App API along with instructions on how to run the code.
- Clone the repository containing the code.
- Make sure you have Java and Maven installed on your system.
- Navigate to the project directory.
- Run the command
mvn spring-boot:runto start the Spring Boot application.
- GET:
- Description: Check if the server is running.
- Functionality: Returns a simple "Hello" message.
- GET:
- Description: Retrieve all users.
- Functionality: Returns a list of all users registered in the system.
- POST:
- Description: Create a new user account.
- Functionality: Creates a new user account based on the provided user details.
- POST:
- Description: Login to user account.
- Functionality: Authenticates the user based on login credentials.
- GET:
- Description: Check the balance of a user account.
- Functionality: Retrieves the current balance of the specified user account.
- GET:
- Description: Retrieve the name associated with a user account.
- Functionality: Retrieves the name of the user associated with the specified account number.
- POST:
- Description: Deposit money to user account.
- Functionality: Adds funds to the specified user account.
- POST:
- Description: Debit money from user account.
- Functionality: Deducts funds from the specified user account.
- POST:
- Description: Transfer money to another user.
- Functionality: Transfers funds from one user account to another.
- GET:
- Description: Generate bank statement.
- Parameters:
accountNumber: Account number for which the statement is to be generated.startDate: Start date of the statement period (format: yyyy-MM-dd).endDate: End date of the statement period (format: yyyy-MM-dd).
- Functionality: Generates a bank statement for the specified account within the given date range.