Skip to content

Commit

Permalink
Add first_day_override to semester representer and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jirutka committed Oct 8, 2015
1 parent cd6452d commit 171d44c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 17 deletions.
1 change: 1 addition & 0 deletions app/representers/semesters_representer.rb
Expand Up @@ -25,6 +25,7 @@ class SemestersRepresenter < Roar::Decorator
property :starts_at
property :ends_at
property :first_week_parity
property :first_day_override
end

end
54 changes: 37 additions & 17 deletions docs/Sirius.raml
Expand Up @@ -423,15 +423,15 @@ resourceTypes:
example: |
{
"semesters": {
"id": "18000-B142",
"semester": "B142",
"id": "18000-B151",
"semester": "B151",
"faculty": 18000,
"starts_at": "2015-02-16",
"ends_at": "2015-09-21",
"exams_start_at": "2015-05-18",
"exams_end_at": "2015-06-27",
"teaching_ends_at": "2015-05-16",
"first_week_parity": "even",
"starts_at": "2015-10-05",
"ends_at": "2016-02-22",
"exams_start_at": "2016-01-11",
"exams_end_at": "2016-02-21",
"teaching_ends_at": "2016-01-10",
"first_week_parity": "odd",
"hour_duration": 45,
"hour_starts": [
"07:30", "08:15", "09:15", "10:00", "11:00", "11:45",
Expand All @@ -441,19 +441,39 @@ resourceTypes:
"periods": [
{
"type": "teaching",
"starts_at": "2015-02-16",
"ends_at": "2015-05-16",
"first_week_parity": "even"
"starts_at": "2015-10-05",
"ends_at": "2015-12-20",
"first_week_parity": "odd"
},
{
"type": "exams",
"starts_at": "2015-05-18",
"ends_at": "2015-06-27"
}
"type": "teaching",
"starts_at": "2015-12-21",
"ends_at": "2015-12-21",
"first_week_parity": "even",
"first_day_override": "wednesday"
},
{
"type": "teaching",
"starts_at": "2015-12-22",
"ends_at": "2015-12-22",
"first_week_parity": "odd",
"first_day_override": "tuesday"
},
{
"type": "holiday",
"starts_at": "2015-07-01",
"ends_at": "2015-08-31"
"starts_at": "2015-12-23",
"ends_at": "2016-01-03"
},
{
"type": "teaching",
"starts_at": "2016-01-04",
"ends_at": "2016-01-10",
"first_week_parity": "even"
},
{
"type": "exams",
"starts_at": "2016-01-11",
"ends_at": "2016-02-20"
}
]
}
Expand Down

0 comments on commit 171d44c

Please sign in to comment.