Endpoint
Required Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Accept | application/json |
Path Parameters
The unique class ID. Must be a numeric value.
This route only accepts numeric IDs. Passing a non-numeric value — for example,
/admin/homeworks/abc — returns a standard 404 response.Example Request
Response
200 OK
The example below shows a class with two submissions: one that has been reviewed and graded, and one that is still pending review.Response Fields
The unique class ID.
The title of the class.
The ID of the parent course this class belongs to.
The title of the parent course. Returns
null if the course has been deleted.Indicates whether the class has a PDF homework assignment. Always
true for classes returned by this endpoint.The submission deadline for the assignment, formatted as
dd/MM/YYYY hh:mm AM|PM. Returns null if no deadline was set.The instructor’s written homework instructions. Returns
null if no description was provided.The URL to the instructor’s homework PDF file. Returns
null if no file has been uploaded.The timestamp when the class was created, formatted as
YYYY-MM-DD HH:mm:ss.Array of SubmissionObjects representing student homework submissions. Returns an empty array if no submissions exist.
Error Responses
| Status | Message | Cause |
|---|---|---|
401 | UnauthorizedRequest | Missing or invalid token, or the authenticated user does not have the Admin role. |
404 | PDF Homework not found | No class exists with the given ID, or the class has no PDF assignment attached. |

