Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commit cf750ac

Browse files
committed
Allow to filter events with type teacher_timetable_slot
1 parent b133d4e commit cf750ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/api/events_endpoints.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def represent(dataset)
5757
optional :deleted, type: String, regexp: /\A(true|false|yes|no|on|off|t|f|y|n|1|0|all)\z/i, default: 'false'
5858
end
5959
params :event_type do
60-
optional :event_type, type: String, values: %w{assessment course_event exam laboratory lecture tutorial}
60+
optional :event_type, type: String, values: %w{assessment course_event exam laboratory lecture teacher_timetable_slot tutorial}
6161
end
6262
params :filter_events do
6363
use :pagination

docs/Sirius.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ traits:
7171
event_type:
7272
description: Filter by event's type
7373
type: string
74-
enum: [ assessment, course_event, exam, laboratory, lecture, tutorial ]
74+
enum: [ assessment, course_event, exam, laboratory, lecture, teacher_timetable_slot, tutorial ]
7575
- includable:
7676
description: >
7777
Includes the specified linked resources into the response (similar to compound documents

0 commit comments

Comments
 (0)