Skip to main content
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
  }
]

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/praveenarya123/sps-backend/llms.txt

Use this file to discover all available pages before exploring further.

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:
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
  }
]

Build docs developers (and LLMs) love