A RESTful API built with Python and Flask for managing student tasks. Supports full CRUD operations with SQLite database storage.
- 5 REST API endpoints (GET, POST, PUT, DELETE)
- Persistent SQLite database storage
- JSON request and response handling
- Error handling with proper HTTP status codes
- Tested using Postman and PowerShell
- Python 3.14
- Flask 3.1.3
- SQLite
- Werkzeug
main.py— main server file with all API endpointsdatabase.py— database connection and initialisationtasks.db— generated locally when the application runs and excluded from Git
git clone https://github.com/keerthy-gs/task-manager-api.git
cd task-manager-apipip install -r requirements.txtpython main.pyThe API will run at:
http://127.0.0.1:5000
| Method | Endpoint | Description |
|---|---|---|
| GET | /tasks | Get all tasks |
| GET | /tasks/ | Get one task |
| POST | /tasks | Create new task |
| PUT | /tasks/ | Update a task |
| DELETE | /tasks/ | Delete a task |
{
"title": "Complete DSA assignment",
"description": "Solve 5 linked list problems"
}{
"message": "Task created successfully"
}