- A dedicated microservice for comprehensive expense management, offering RESTful APIs to create, update, and delete expense records.
- Consumes the event published by Ds-service (LLM) to create a new expense based on spending. (Read a data from the users sms and extracts spending details.s)
API’s
- /getExpense - get the all expense for particular user.
- /addExpense - add a new expense.
- TODO: /udateExpense - update an existing expense.
Details
- Exposed Rest API’s for adding and updating the expenses.
- ExpenseService:
- Created a service containing business logic for performing crud operations on expense data.
- ExpenseRepository:
- To interact with the database for performing the common db operations.
- ExpenseConsumer
- Setup a kafka consumer to listen to the ds-service to new expenses based on user spending’s automatically.
- ExpenseEntity.
- ExpenseDTO.