Get All Parents
Authentication Required: ADMIN role
GET /api/parents
Response
Response Example
Error Codes
- 401 - Unauthorized (not authenticated)
- 403 - Forbidden (not an admin)
Manage parent accounts and user profiles
curl -X GET https://api.sunschool.xyz/api/parents \
-H "Authorization: Bearer {token}"
[
{
"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
}
]