Skip to content

List all teachers

GET
/teachers

Retrieves a list of all teachers with their resource information

Teachers retrieved successfully

object
success
boolean
true
data
Array<object>
object
teacher_id
required

Unique identifier for the teacher

integer
teacher_name
required

Name of the teacher

string
email
required

Email address of the teacher

string format: email
used_resources

Number of resources currently used by the teacher

integer
total_resources

Total number of resources allocated to the teacher

integer

Unauthorized - authentication required

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: UNAUTHORIZED

Forbidden - insufficient permissions

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: FORBIDDEN

Internal server error

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: INTERNAL_SERVER_ERROR