Documentation Index
Fetch the complete documentation index at: https://docs.sunschool.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Get All Parents
Authentication Required: ADMIN role
curl -X GET https://api.sunschool.xyz/api/parents \
-H "Authorization: Bearer {token}"
Returns a list of all parent accounts in the system.
Response
[
{
"id": 1,
"username": "john_parent",
"email": "john@example.com",
"name": "John Doe",
"role": "PARENT",
"parentId": null
},
{
"id": 2,
"username": "jane_parent",
"email": "jane@example.com",
"name": "Jane Smith",
"role": "PARENT",
"parentId": null
}
]
Error Codes
- 401 - Unauthorized (not authenticated)
- 403 - Forbidden (not an admin)