tasks:
git clone https://github.com/Lubas1337/SolveTask
sudo docker-compose up -d
This is to create a database
sudo mvn spring-boot:run
Method: GET Description: Check the health status of the application. Response: Returns a JSON object indicating the status of the application. status: String representing the status of the application. Possible values include: "UP": Indicates that the application is running and healthy.
Method: POST Description: Create a new expense limit for an account. Request Body: ExpenseLimitDto: Data transfer object representing the details of the expense limit. Response: Returns the created expense limit object.
Method: GET Description: Retrieve all expense limits with associated transactions for a specific account. Path Parameters: accountNumber: Integer representing the account number. Response: Returns a list of expense limits with associated transactions.
Method: POST Description: Create a new account with the provided account number. Path Parameters: accountNumber: Integer representing the account number. Response: Returns the created account object.
Method: GET Description: Retrieve an account by its unique ID. Path Parameters: id: Long representing the unique ID of the account. Response: Returns the account object if found.
Method: GET Description: Retrieve a transaction by its unique ID. Path Parameters: id: Long representing the unique ID of the transaction. Response: Returns the transaction object if found.
Method: POST Description: Create a new transaction between accounts. Request Body: TransactionDto: Data transfer object representing the details of the transaction. Response: Returns the created transaction object.