Automated Action cc15df67ee Fix import * statement in main.py
- Move wildcard import from app.db.all_models to module level
- Fix SyntaxError that was preventing application startup
- Ensure all models are registered with SQLAlchemy Base
2025-06-10 15:47:02 +00:00
2025-06-09 10:45:39 +00:00
2025-06-10 15:47:02 +00:00

Todo API

This is a FastAPI Todo API application that allows you to manage todo items.

Features

  • Create, read, update, and delete todo items
  • Filter todos by completion status and title
  • Pagination support
  • SQLite database backend
  • Alembic migrations

Requirements

  • Python 3.9+
  • FastAPI
  • SQLAlchemy
  • Alembic
  • Uvicorn
  • Other dependencies in requirements.txt

Installation

  1. Clone the repository
  2. Install the dependencies:
pip install -r requirements.txt

Database Setup

The application uses SQLite as the database backend. The database will be automatically created in the /app/storage/db directory when the application starts.

To run the database migrations:

alembic upgrade head

Running the Application

Start the application with Uvicorn:

uvicorn main:app --reload

The API will be available at http://localhost:8000

API Documentation

The API documentation is available at:

API Endpoints

  • GET /api/v1/todos: List all todos with optional filtering
  • POST /api/v1/todos: Create a new todo
  • GET /api/v1/todos/{todo_id}: Get a specific todo
  • PUT /api/v1/todos/{todo_id}: Update a todo
  • DELETE /api/v1/todos/{todo_id}: Delete a todo

Health Check

The application includes a health check endpoint at /health that can be used to verify that the service is running properly.

Description
Project: Todo API
Readme 42 KiB
Languages
Python 97%
Mako 3%