Expand description
Assignment routes and response models.
Provides endpoints and data structures for managing assignments within modules:
-
GET /api/modules/{module_id}/assignments/{assignment_id}
Retrieve a specific assignment along with its associated files. -
GET /api/modules/{module_id}/assignments
Retrieve a paginated and optionally filtered list of assignments. -
GET /api/modules/{module_id}/assignments/{assignment_id}/stats
Retrieve submission statistics for a specific assignment. -
GET /api/modules/{module_id}/assignments/{assignment_id}/readiness
Retrieve a readiness report for a specific assignment, checking whether all required components are present.
Models:
AssignmentFileResponse
: Assignment data plus associated files.FilterReq
/FilterResponse
: Query and response for paginated assignment lists.StatResponse
/PerStudentSubmission
: Assignment submission statistics.AssignmentReadiness
: Detailed readiness report for an assignment.
All endpoints use AppState
for database access and return JSON-wrapped ApiResponse
.
Structs§
Functions§
- get_
assignment - GET /api/modules/{module_id}/assignments/{assignment_id}
- get_
assignment_ readiness - GET /api/modules/:module_id/assignments/:assignment_id/readiness
- get_
assignment_ stats - GET /api/modules/{module_id}/assignments/{assignment_id}/stats
- get_
assignments - GET /api/modules/{module_id}/assignments
- is_late