curl --request GET \
--url https://your-api-host/api/student/list
[
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Priya Sharma",
"email": "priya.sharma@school.edu",
"class": "10",
"section": "A",
"rollNumber": 42,
"__v": 0
},
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d2",
"name": "Arjun Mehta",
"email": "arjun.mehta@school.edu",
"class": "9",
"section": "B",
"rollNumber": 17,
"__v": 0
},
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d3",
"name": "Sneha Patel",
"email": "sneha.patel@school.edu",
"class": "10",
"section": "B",
"rollNumber": 5,
"__v": 0
}
]
Students
List students
Retrieve a list of all student records in the system.
GET
/
api
/
student
/
list
curl --request GET \
--url https://your-api-host/api/student/list
[
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Priya Sharma",
"email": "priya.sharma@school.edu",
"class": "10",
"section": "A",
"rollNumber": 42,
"__v": 0
},
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d2",
"name": "Arjun Mehta",
"email": "arjun.mehta@school.edu",
"class": "9",
"section": "B",
"rollNumber": 17,
"__v": 0
},
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d3",
"name": "Sneha Patel",
"email": "sneha.patel@school.edu",
"class": "10",
"section": "B",
"rollNumber": 5,
"__v": 0
}
]
Returns an array of all student records stored in the database. No filtering or pagination is applied — all students are returned in a single response.
This endpoint does not require authentication. It is publicly accessible.
Request
This endpoint accepts no request body and no query parameters.Response
Returns an array of student objects.object[]
required
Array of student records. Each object contains the following fields:
Hide Student object properties
Hide Student object properties
MongoDB-generated unique identifier for the student.
Full name of the student.
Email address of the student.
The class the student is enrolled in.
The section within the class.
The student’s roll number.
MongoDB internal version key.
curl --request GET \
--url https://your-api-host/api/student/list
[
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Priya Sharma",
"email": "priya.sharma@school.edu",
"class": "10",
"section": "A",
"rollNumber": 42,
"__v": 0
},
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d2",
"name": "Arjun Mehta",
"email": "arjun.mehta@school.edu",
"class": "9",
"section": "B",
"rollNumber": 17,
"__v": 0
},
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d3",
"name": "Sneha Patel",
"email": "sneha.patel@school.edu",
"class": "10",
"section": "B",
"rollNumber": 5,
"__v": 0
}
]
⌘I