curl --request POST \
--url https://your-api-host/api/student/add \
--header 'Content-Type: application/json' \
--data '{
"name": "Priya Sharma",
"email": "priya.sharma@school.edu",
"class": "10",
"section": "A",
"rollNumber": 42
}'
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Priya Sharma",
"email": "priya.sharma@school.edu",
"class": "10",
"section": "A",
"rollNumber": 42,
"__v": 0
}
Create a new student record in the system.
curl --request POST \
--url https://your-api-host/api/student/add \
--header 'Content-Type: application/json' \
--data '{
"name": "Priya Sharma",
"email": "priya.sharma@school.edu",
"class": "10",
"section": "A",
"rollNumber": 42
}'
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Priya Sharma",
"email": "priya.sharma@school.edu",
"class": "10",
"section": "A",
"rollNumber": 42,
"__v": 0
}
Creates a new student and persists it to the database. Returns the created student object including the generatedDocumentation 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.
_id.
"10" or "Grade 5"."A" or "B".curl --request POST \
--url https://your-api-host/api/student/add \
--header 'Content-Type: application/json' \
--data '{
"name": "Priya Sharma",
"email": "priya.sharma@school.edu",
"class": "10",
"section": "A",
"rollNumber": 42
}'
{
"_id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Priya Sharma",
"email": "priya.sharma@school.edu",
"class": "10",
"section": "A",
"rollNumber": 42,
"__v": 0
}