|
|
@@ -2,16 +2,17 @@ type: object
|
|
|
description: Single lecture series definition of a specific revision
|
|
|
properties:
|
|
|
pk:
|
|
|
- description: A unique ID for this module and the time it is taught
|
|
|
- type: string
|
|
|
+ $ref: ../common/pk.yaml
|
|
|
+ revision_pk:
|
|
|
+ $ref: ../relations/term-revision.yaml
|
|
|
weekday:
|
|
|
description: The weekday the module took place on
|
|
|
$ref: ../../enums/weekday.yaml
|
|
|
- from:
|
|
|
+ starts:
|
|
|
description: Start time of the module, in seconds since midnight
|
|
|
type: integer
|
|
|
format: u32
|
|
|
- to:
|
|
|
+ ends:
|
|
|
description: End time of the module, in seconds since midnight
|
|
|
type: integer
|
|
|
format: u32
|
|
|
@@ -20,42 +21,44 @@ properties:
|
|
|
type: string
|
|
|
name:
|
|
|
description: Short name of the module
|
|
|
+ type: string
|
|
|
rooms:
|
|
|
description: List of rooms reserved for this module
|
|
|
type: array
|
|
|
items:
|
|
|
+ description: Name / room identifier
|
|
|
type: string
|
|
|
lecturers:
|
|
|
description: List of lecturers teaching this module
|
|
|
type: array
|
|
|
items:
|
|
|
- type: string
|
|
|
- teaching_type:
|
|
|
- description: The type of teaching
|
|
|
+ $ref: ../relations/lecturer.yaml
|
|
|
+ lecture_type:
|
|
|
$ref: ../../enums/teaching-type.yaml
|
|
|
module_execution_method:
|
|
|
$ref: ../../enums/module-execution-type.yaml
|
|
|
pages:
|
|
|
description: List of pages, on which the module can be found in the PDF
|
|
|
type: array
|
|
|
+ default: []
|
|
|
items:
|
|
|
+ description: Page number, starting at 1 for the 1st page
|
|
|
type: integer
|
|
|
format: u16
|
|
|
- course:
|
|
|
- description: Name of the course this module is part of
|
|
|
- type: string
|
|
|
+ course_pk:
|
|
|
+ $ref: ../relations/course.yaml
|
|
|
part_of_other_classes:
|
|
|
description: List of other classes, where this module is also taught
|
|
|
type: array
|
|
|
+ default: []
|
|
|
items:
|
|
|
type: string
|
|
|
dates:
|
|
|
description: |
|
|
|
List of specific dates, when the lectures are held. This is used for
|
|
|
block lectures and not regular lectures.
|
|
|
- type:
|
|
|
- - array
|
|
|
- - "null"
|
|
|
+ type: array
|
|
|
+ default: []
|
|
|
items:
|
|
|
type: object
|
|
|
properties:
|
|
|
@@ -71,15 +74,14 @@ properties:
|
|
|
- start
|
|
|
- end
|
|
|
required:
|
|
|
+ - revision_pk
|
|
|
- weekday
|
|
|
- - from
|
|
|
- - to
|
|
|
+ - starts
|
|
|
+ - ends
|
|
|
- class
|
|
|
- name
|
|
|
- rooms
|
|
|
- lecturers
|
|
|
- - teaching_type
|
|
|
+ - lecture_type
|
|
|
- module_execution_method
|
|
|
- - pages
|
|
|
- - course
|
|
|
- - part_of_other_classes
|
|
|
+ - course_pk
|