Paywint Test
This repository contains my initial implementation of the FastAPI machine test. I have pushed the current progress to maintain transparency, although some parts are still under development.
Work Completed Initialized a FastAPI project within a virtual environment.
Application can be started using:
uvicorn main:app --reload
Set up the basic project structure and verified the application setup. Defined Pydantic schemas for request validation and response modeling. Created the SQLAlchemy model (Expense) with the corresponding database table. Configured and connected a SQLite database. Implemented API to create a new expense record: POST /expenses Implemented API to retrieve all expense records: GET /expenses Started implementation of filtering expenses by date: GET /expenses/month/{year}/{month} (in progress) Started implementation of totals calculation: GET /totals (currently returns hardcoded values) Pending Work Complete date-based filtering logic Implement accurate total expense, total salary, and remaining amount calculation Improve validation and error handling (Optional) Add authentication Branch is develop