Skip to content

Commit

Permalink
refactor(courses): added course links (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bri74 committed Apr 19, 2024
1 parent 70b1770 commit 43e3f0e
Showing 1 changed file with 12 additions and 28 deletions.
40 changes: 12 additions & 28 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -570,33 +570,6 @@ paths:
data:
$ref: '#/components/schemas/Course'
required: [ data ]
example:
data:
id: 252842
name: Human Computer Interaction
shortcode: 01NYHOV
cfu: 6
teachingPeriod: 1-1
teacherId: 25734
isOverBooking: false
isInPersonalStudyPlan: true
year: '2022'
vcPreviousYears:
- year: 2020
id: 24343324
vcOtherCourses:
- year: 2020
name: Fisica II
id: 24343325
notifications:
notices: true
files: true
lectures: true
staff:
- role: 'Titolare'
id: 025734
- role: 'Docente'
id: 002154
404:
description: Course not found
content:
Expand Down Expand Up @@ -3934,6 +3907,17 @@ components:
year:
type: string
example: '2022'
links:
type: array
items:
type: object
properties:
url:
type: string
example: 'https://docs.google.com/document/d/13hpWEDQxziSkhSU0PuqxMXntqZYp3ffDKZ2-umQ7Ywo/edit?usp=sharing'
description:
type: string
example: 'Calendario settimanale dei contenuti del corso'
vcPreviousYears:
type: array
items:
Expand Down Expand Up @@ -3986,7 +3970,7 @@ components:
type: number
example: 244577
required: [ role, id ]
required: [ id, name, shortcode, cfu, teachingPeriod, teacherId, isOverBooking, isInPersonalStudyPlan, isModule, moduleNumber, year, vcPreviousYears, vcOtherCourses, notifications, staff ]
required: [ id, name, shortcode, cfu, teachingPeriod, teacherId, isOverBooking, isInPersonalStudyPlan, isModule, moduleNumber, year, links, vcPreviousYears, vcOtherCourses, notifications, staff ]
CourseAssignment:
type: object
properties:
Expand Down

0 comments on commit 43e3f0e

Please sign in to comment.