Practice REST with 27 fake Indian student records. Safe sandbox — changes stay on this server.
/dummy_api/Content-Type: application/json for POST, PUT, and DELETE bodies. All responses are JSON.
Use Postman, Thunder Client, curl, or fetch(). Demo login password is always student123.
| Endpoint | Description | Try it |
|---|---|---|
/get-students |
List students (pagination & filters) | Open JSON |
/get-student |
Single student by ID | Open JSON |
/search-students |
Search by name, email, city, or course | Open JSON |
/student-stats |
Counts by city, course, status + average score | Open JSON |
/get-courses |
Available course catalog | Open JSON |
| Endpoint | Description | Try it |
|---|---|---|
/create-student |
Add one student | POST |
/bulk-students |
Add multiple students | POST |
/fake-login |
Demo login (password: student123) | POST |
/post-enrollment |
Enroll / change course | POST |
/post-feedback |
Submit rating & comment | POST |
| Endpoint | Description | Try it |
|---|---|---|
/update-student |
Full update | PUT |
/update-contact |
Update email / phone only | PUT |
/update-course |
Change course & batch | PUT |
/update-status |
Set active or inactive | PUT |
/reset-data |
Reset all data to 27 seed students | PUT |
| Endpoint | Description | Try it |
|---|---|---|
/delete-student |
Remove one student | DELETE |
/delete-inactive |
Remove all inactive students | DELETE |
/delete-enrollment |
Clear course enrollment | DELETE |
/delete-feedback |
Delete feedback by ID | DELETE |
/clear-session |
Invalidate demo login token | DELETE |
{
"id": 1,
"name": "Aarav Sharma",
"email": "aarav.sharma@student.in",
"phone": "+91 98765 43210",
"city": "New Delhi",
"state": "Delhi",
"course": "Full Stack Python",
"batch": "PY-2025-A",
"age": 22,
"gender": "Male",
"enrollment_date": "2025-01-12",
"status": "active",
"score": 88.5
}
fetch('/dummy_api/get-students?limit=5')
.then(r => r.json())
.then(console.log);