getClassesForTeacher
GET/ims/oneroster/v1p1/teachers/:teacherId/classes
Return the collection of classes that this teacher is teaching.
Request
Path Parameters
Teacher id
Query Parameters
Possible values: >= 1
and <= 2500
Default value: 100
The number of results to return
The index of the first record to return. (zero indexed)
Default value: dateLastModified
The sort query parameter allows collections to be returned in a specific order based on a single data element from the resource's core attributes. The sort parameter specifies the field to sort by (e.g., ?sort=familyName).
Possible values: [asc
, desc
]
Default value: desc
orderBy MAY be used in the request to ask for the collection to be ordered ascending (asc) or descending (desc).
Please find the following link to see information on filtering here.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
classes object[]required
Possible values: [active
, tobedeleted
]
Date string (ISO 8601)
course objectrequired
school objectrequired
terms object[]required
Possible values: [org
, course
, term
, class
, user
, lineItem
]
{
"classes": [
{
"status": "active",
"dateLastModified": "string",
"sourcedId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "string",
"classType": {},
"classCode": "string",
"course": {
"sourcedId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "string"
},
"school": {
"sourcedId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "string"
},
"terms": [
{
"type": "org",
"sourcedId": "string"
}
],
"subjects": [
"string"
],
"subjectCodes": [
"string"
]
}
]
}
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error