A simple Django REST Framework (DRF) API to create reminders. Each reminder belongs to a user and stores a message, date, time, and reminder type (email or SMS).
-
Clone the repository:
git clone https://github.com/your-username/remind-me-later-api.git cd remind-me-later-api -
Create a virtual environment:
python -m venv venv source venv/bin/activate # Linux / macOS venv\Scripts\activate # Windows
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Create a superuser (for managing users in admin):
python manage.py createsuperuser
-
Create a test user (optional):
python manage.py shell from django.contrib.auth.models import User user = User.objects.create(username="abhi", password="123") print(user.id)
-
Run the server:
python manage.py runserver
POST /api/reminder/
Request body:
{
"user": 1,
"message": "Doctor Appointment",
"date": "2025-08-23",
"time": "17:45:00",
"reminder_type": "email"
}Response (201 Created):
{
"id": 1,
"user": 1,
"message": "Doctor Appointment",
"date": "2025-08-23",
"time": "17:45:00",
"reminder_type": "email"
}GET /api/reminder/
Response (200 OK):
[
{
"id": 1,
"user": 1,
"message": "Doctor Appointment",
"date": "2025-08-23",
"time": "17:45:00",
"reminder_type": "email"
},
{
"id": 2,
"user": 1,
"message": "Meeting with team",
"date": "2025-08-24",
"time": "09:30:00",
"reminder_type": "sms"
}
]