Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Task Management System API

A professional-grade backend built with FastAPI. This project implements a modular architecture, modern Python type hinting, and robust data validation.


📌 Project Goals

The Task Management System provides a foundation for team collaboration by managing work items with strict validation rules:

  • User Roles: Support for admin, manager, and team_member.
  • Task Validation: Custom logic ensuring task titles are always capitalized.
  • Data Integrity: Using Literal and Annotated for precise input control.

🏗️ Project Structure

Organized into logical modules for scalability:

task_manager/ ├── main.py # App assembly & router inclusion ├── routers/ # Endpoint definitions (Users & Tasks) ├── schemas/ # Pydantic models & field validation └── README.md # Project documentation


📸 API Documentation & Testing Screenshots

1️⃣ Interactive API Hub (Swagger UI)

Description: This screenshot captures the FastAPI auto-generated documentation, highlighting the clean, modular organization of User and Task routers implemented using APIRouter. It serves as the central hub for testing all API functionality.

1-29-2026

2️⃣ Validation Test (Success Case - 200 OK)

Description: This test demonstrates a successful POST request to the /tasks endpoint. The input passes the custom @field_validator logic, which requires task titles to start with a capital letter.


Screenshot --2026-01-29 220117

3️⃣ Error Handling (Validation Error - 422)

Description: Demonstrating the API's robust error handling. A 422 Unprocessable Entity status is returned when validation rules are violated—such as using a lowercase title or an invalid role—ensuring data integrity before processing.


Screenshot 2026-01-29 220117

About

FastAPI Assignment for Task Management System.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages