# Car Rental Flask API This is a small Flask application exposing CRUD endpoints for Car Reservations using SQLAlchemy and MySQL. This web api works with python 3.13.3 Install dependencies: ```bash python -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` Run the app: ```bash flask --app app run ``` Run the app (on all interfaces): ```bash flask --app app run --host=0.0.0.0 ``` Run the app (on different port): ```bash flask --app app run --port=12345 ``` Database migrations (Flask-Migrate / Alembic) After installing requirements, initialize and run migrations with the Flask CLI. Example: ```bash flask db init # only once flask db migrate -m "initial" flask db upgrade ``` This will create an `migrations/` folder and apply the schema to the configured database. API endpoints summary: - GET /cars - GET /cars/ - POST /cars - PUT /cars/ - DELETE /cars/ - GET /reservations - GET /reservations/ - POST /reservations - PUT /reservations/ - DELETE /reservations/ Notes: - Dates must be ISO formatted strings (e.g. 2025-11-17T12:00:00) - Car `ports` must be either 3 or 5. - Car `type` must be one of 'suv', 'small', 'van'.