A RESTful CRUD API built with Python + FastAPI by Manish Kumar Pandit
- Python 3.11+
- FastAPI — Modern, fast web framework
- Pydantic — Data validation
- Uvicorn — ASGI server
pip install -r requirements.txtuvicorn main:app --reloadhttp://127.0.0.1:8000/docs
| 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 |
POST /tasks
{
"title": "Learn FastAPI",
"description": "Build a CRUD API project",
"completed": false
}PUT /tasks/{id}
{
"completed": true
}Manish Kumar Pandit
BCA Student | Aspiring LLM & GenAI
GitHub: aimanish2030
LinkedIn: Manish Kumar Pandit