Skip to content

aimanish2030/task-manager-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📋 Task Manager API

A RESTful CRUD API built with Python + FastAPI by Manish Kumar Pandit


🚀 Tech Stack

  • Python 3.11+
  • FastAPI — Modern, fast web framework
  • Pydantic — Data validation
  • Uvicorn — ASGI server

⚙️ Setup & Run

1. Install dependencies

pip install -r requirements.txt

2. Run the server

uvicorn main:app --reload

3. Open API docs

http://127.0.0.1:8000/docs

📌 API Endpoints

Method Endpoint Description
GET / Welcome message
POST /tasks Create a new task
GET /tasks Get all tasks
GET /tasks/{id} Get task by ID
PUT /tasks/{id} Update a task
DELETE /tasks/{id} Delete a task
GET /tasks/filter/completed Get completed tasks
GET /tasks/filter/pending Get pending tasks

📝 Example Usage

Create a Task

POST /tasks
{
  "title": "Learn FastAPI",
  "description": "Build a CRUD API project",
  "completed": false
}

Update a Task

PUT /tasks/{id}
{
  "completed": true
}

👨‍💻 Developer

Manish Kumar Pandit
BCA Student | Aspiring LLM & GenAI

GitHub: aimanish2030
LinkedIn: Manish Kumar Pandit

About

REST API built with Python & FastAPI — CRUD Operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages