Skip to content

Get teacher's resources

GET
/resources/teachers/{teacherId}

Retrieves resources for a specific teacher by ID

teacherId
required
integer

The teacher ID to get resources for

Teacher resources retrieved successfully

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

Unique identifier for the resource

integer
teacher_id
required

Teacher ID associated with the resource

integer
used_resources
required

Number of resources currently used

integer
total_resources
required

Total number of resources allocated

integer
study_year
required

Academic year for the resource allocation

string

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

Resource not found

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: NOT_FOUND

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