A simple and clean Django REST Framework (DRF) backend built for a React Native To-Do App.
This API provides CRUD functionality for managing to-do items and includes automatically generated API documentation using DRF’s built-in documentation system.
- ✅ Create, Read, Update, and Delete (CRUD) Todo items
- 📄 API documentation automatically generated using DRF’s default docs
- 🔑 Future user authentication (planned)
- ⚙️ RESTful architecture built with Django REST Framework
- 🧱 UUID-based primary keys for modern API design
- Backend: Python · Django · Django REST Framework
- Database: SQLite (default, easily switchable to PostgreSQL or MySQL)
- Frontend: React Native (to be integrated)
git clone https://github.com/Minenhle-Ngubane/todo_api.git
cd todo_apipython -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activatepip install -r requirements.txtpython manage.py migratepython manage.py runserverYour API will be available at 👉 http://127.0.0.1:8000/api/
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/ |
List all Todo items |
POST |
/api/create/ |
Create a new Todo |
GET |
/api/<uuid:pk>/ |
Retrieve a specific Todo by UUID |
PUT |
/api/<uuid:pk>/update/ |
Update an existing Todo completely |
PATCH |
/api/<uuid:pk>/update/ |
Update an existing Todo partially |
DELETE |
/api/<uuid:pk>/delete/ |
Delete a Todo by UUID |

