A simple and clean Task Manager API built using FastAPI π
It allows you to create, view, update, and delete tasks securely using an API key authentication system.
- β Create a Task
- β View All Tasks
- β View Task by ID
- β Update a Task
- β Delete a Task
- β API Key Authentication (header-based security)
git clone https://github.com/MiabhishekPatidar/TaskManagerAPI.git
cd TaskManagerAPIpython -m venv venvActivate the environment:
- Windows:
venv\Scripts\activate
- Mac/Linux:
source venv/bin/activate
pip install fastapi uvicornuvicorn app.main:app --reloadServer will start at:
π http://127.0.0.1:8000
All API requests must include an API Key in the headers.
Example Header:
x-api-key: your-secret-api-key
β‘ Note: The API key is hardcoded in the backend for now. Update it in the code if needed.
| Method | Endpoint | Description |
|---|---|---|
| POST | /tasks/ |
Create a new task |
| GET | /tasks/ |
Get all tasks |
| GET | /tasks/{task_id} |
Get task by ID |
| PUT | /tasks/{task_id} |
Update task by ID |
| DELETE | /tasks/{task_id} |
Delete task by ID |
β
All endpoints require the x-api-key header.
- FastAPI
- Uvicorn
- Python 3.12+
- GitHub: MiabhishekPatidar
This project is open source and free to use!