Create a migration with carefully curated test data for testing reporting (must include 2 separate months, a couple of categories for each type with a couple of entries for each category, leave at least one category without any entries).
Write a db query that creates a report (show it to me when you have).
Implement reporting feature (create a dedicated service, e.g. internal/report).
GET /report/monthly
parameters: month, year
Returns incomes and expenses for a specific month, separated by categories
For example:
GET v1/report/montly?month=5&year=2023
Output: