Automated Action af0f9e1638 Build barebones task manager API with FastAPI and SQLite
- Create FastAPI application with CORS support
- Implement Task model with SQLAlchemy
- Set up database session and migrations with Alembic
- Add CRUD endpoints for task management
- Include health check and API documentation endpoints
- Configure Ruff for code formatting and linting
2025-06-18 00:22:56 +00:00
2025-06-18 00:18:37 +00:00

Task Manager API

A barebones task manager API built with FastAPI and SQLite.

Features

  • Create, read, update, and delete tasks
  • SQLite database with Alembic migrations
  • RESTful API endpoints
  • Health check endpoint
  • CORS support
  • OpenAPI documentation

Requirements

  • Python 3.8+
  • FastAPI
  • SQLite

Installation

  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
uvicorn main:app --reload

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

API Endpoints

  • GET / - API information
  • GET /health - Health check
  • GET /api/v1/tasks/ - List all tasks
  • POST /api/v1/tasks/ - Create a new task
  • GET /api/v1/tasks/{task_id} - Get a specific task
  • PUT /api/v1/tasks/{task_id} - Update a task
  • DELETE /api/v1/tasks/{task_id} - Delete a task

Documentation

  • OpenAPI spec: http://localhost:8000/openapi.json
  • Swagger UI: http://localhost:8000/docs
  • ReDoc: http://localhost:8000/redoc

Database

The application uses SQLite with the database file stored at /app/storage/db/db.sqlite.

Description
Project: Task Manager API
Readme 35 KiB
Languages
Python 93.6%
Mako 6.4%