Skip to content

Get current user's resources

GET
/resources/me

Retrieves resources specific to the authenticated teacher

Resources retrieved successfully

object
success
boolean
true
data
object
teacher_id
required

Teacher ID

integer
resources
required

List of resources for the teacher

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