/
openapi.yaml
5596 lines (5518 loc) · 180 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Polito Students API
version: 1.0.0-ALPHA.63
servers:
- url: https://app.didattica.polito.it/api
description: Production server (uses live data)
- url: https://app.didattica.polito.it/mock/api
description: Mock server (uses example data)
security:
- bearerAuth: [ ]
paths:
/auth/login:
post:
tags:
- Auth
security: [ ]
summary: Login
operationId: login
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LoginRequest'
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Identity'
required: [ data ]
500:
$ref: '#/components/responses/ErrorResponse'
/auth/switch-career:
post:
tags:
- Auth
summary: Switch career | Cambia carriera
operationId: switchCareer
requestBody:
content:
application/json:
schema:
type: object
properties:
username:
type: string
example: s290683
client:
$ref: '#/components/schemas/Client'
device:
$ref: '#/components/schemas/Device'
required: [ username ]
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Identity'
required: [ data ]
500:
$ref: '#/components/responses/ErrorResponse'
/auth/logout:
delete:
tags:
- Auth
summary: Logout
description: Invalidates the provided token
operationId: logout
responses:
200:
description: Success
500:
$ref: '#/components/responses/ErrorResponse'
/me:
get:
tags:
- Student
summary: Retrieve student profile | Recupera il profilo studente
operationId: getStudent
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Student'
required: [ data ]
500:
$ref: '#/components/responses/ErrorResponse'
/deadlines:
get:
tags:
- Student
parameters:
- name: fromDate
in: query
description: First day - defaults to 7 days before today
required: false
schema:
type: string
format: date
- name: toDate
in: query
description: Last day - defaults to 7 days after today
required: false
schema:
type: string
format: date
summary: List deadlines | Elenca scadenze
operationId: getDeadlines
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Deadline'
required: [ data ]
example:
data:
- name: Termine per l'iscrizione e pagamento della prima rata, per gli studenti di anni successivi al primo
type: Iscrizioni e pagamento tasse
date: "2022-10-11"
url: null
- name: Trasferimento da altri Atenei italiani
type: Trasferimenti e valutazioni carriere precedenti
date: "2022-10-14"
url: null
- name: Termine per superare gli esami
type: Sessioni esami di laurea
date: "2022-11-12"
url: null
- name: Termine iscrizione esame finale
type: Sessioni esami di laurea
date: "2022-11-14"
url: null
- name: Periodo per la compilazione del piano carriera / carico didattico
type: Iscrizioni e pagamento tasse
date: "2022-11-25"
url: null
500:
$ref: '#/components/responses/ErrorResponse'
/grades:
get:
tags:
- Student
summary: Retrieve student grades | Recupera i voti dello studente
operationId: getStudentGrades
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ExamGrade'
required: [ data ]
500:
$ref: '#/components/responses/ErrorResponse'
/provisional-grades:
get:
tags:
- Student
summary: Retrieve student provisional grades | Recupera le valutazioni provvisorie dello studente
operationId: getStudentProvisionalGrades
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ProvisionalGrade'
states:
type: array
items:
$ref: '#/components/schemas/ProvisionalGradeState'
required: [ data, states ]
500:
$ref: '#/components/responses/ErrorResponse'
/provisional-grades/{provisionalGradeId}/accept:
post:
tags:
- Student
summary: Accept provisional grade | Accetta valutazione provvisoria
operationId: acceptProvisionalGrade
parameters:
- $ref: '#/components/parameters/provisionalGradeIdParam'
responses:
200:
description: Success
404:
description: Provisional grade not found
500:
$ref: '#/components/responses/ErrorResponse'
/provisional-grades/{provisionalGradeId}/reject:
post:
tags:
- Student
summary: Reject provisional grade | Rifiuta valutazione provvisoria
operationId: rejectProvisionalGrade
parameters:
- $ref: '#/components/parameters/provisionalGradeIdParam'
responses:
200:
description: Success
404:
description: Provisional grade not found
500:
$ref: '#/components/responses/ErrorResponse'
/booking-topics:
get:
tags:
- Bookings
summary: List booking topics | Elenca ambiti di prenotazione
operationId: getBookingTopics
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/BookingTopic'
required: [ data ]
500:
$ref: '#/components/responses/ErrorResponse'
/booking-topics/{bookingTopicId}/slots:
get:
tags:
- Bookings
summary: Show booking slots | Mostra turni prenotabili
operationId: getBookingSlots
parameters:
- name: bookingTopicId
in: path
required: true
schema:
type: string
- name: fromDate
in: query
description: First day - defaults to monday of current week
required: false
schema:
type: string
format: date
- name: toDate
in: query
description: Last day - defaults to sunday of current week
required: false
schema:
type: string
format: date
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/BookingSlot'
required: [ data ]
404:
description: Booking topic not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
$ref: '#/components/responses/ErrorResponse'
/booking-topics/{bookingTopicId}/slots/{bookingSlotId}/seats:
get:
tags:
- Bookings
summary: Show seats for a booking slots | Mostra posti prenotabili
operationId: getBookingSeats
parameters:
- name: bookingTopicId
in: path
required: true
schema:
type: string
- name: bookingSlotId
in: path
required: true
schema:
type: string
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/BookingSeats'
required: [ data ]
404:
description: Booking topic|slot not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
$ref: '#/components/responses/ErrorResponse'
/bookings:
get:
tags:
- Bookings
summary: List bookings | Elenca prenotazioni
operationId: getBookings
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Booking'
required: [ data ]
500:
$ref: '#/components/responses/ErrorResponse'
post:
tags:
- Bookings
summary: Create booking | Crea prenotazione
operationId: createBooking
requestBody:
content:
application/json:
schema:
type: object
properties:
slotId:
type: integer
example: 226439
seatId:
type: integer
example: 20018
required: [ slotId ]
responses:
200:
description: Success
500:
$ref: '#/components/responses/ErrorResponse'
/bookings/{bookingId}:
patch:
tags:
- Bookings
summary: Update booking | Aggiorna prenotazione
operationId: updateBooking
parameters:
- name: bookingId
in: path
required: true
schema:
type: integer
requestBody:
content:
application/json:
schema:
type: object
properties:
isLocationChecked:
type: boolean
example: true
required: [ isLocationChecked ]
responses:
200:
description: Success
404:
description: Booking not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
$ref: '#/components/responses/ErrorResponse'
delete:
tags:
- Bookings
summary: Delete booking | Cancella prenotazione
operationId: deleteBooking
parameters:
- name: bookingId
in: path
required: true
schema:
type: integer
responses:
200:
description: Success
404:
description: Booking not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
$ref: '#/components/responses/ErrorResponse'
/courses:
get:
tags:
- Courses
summary: List courses | Elenca corsi
operationId: getCourses
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/CourseOverview'
required: [ data ]
example:
data:
- id: 251007
name: System and device programming
shortcode: 01NYHOV
cfu: 10
teachingPeriod: 2-2
teacherId: 2893
isOverBooking: false
isInPersonalStudyPlan: true
isModule: false
- id: 252121
name: Web Applications II
shortcode: 01TXSOV
cfu: 6
teachingPeriod: 2-2
teacherId: 2235
isOverBooking: false
isInPersonalStudyPlan: true
isModule: false
- id: 252126
name: Security verification and testing
shortcode: 01TYAOV
cfu: 6
teachingPeriod: 1-1
teacherId: 1943
isOverBooking: false
isInPersonalStudyPlan: true
isModule: false
- id: 252138
name: Information systems security
shortcode: 01TYMOV
cfu: 6
teachingPeriod: 1-1
teacherId: 1847
isOverBooking: false
isInPersonalStudyPlan: true
isModule: false
- id: 252258
name: Cybersecurity
shortcode: 01UDROV
cfu: 6
teachingPeriod: 2-2
teacherId: 1847
isOverBooking: false
isInPersonalStudyPlan: true
isModule: false
- id: 252788
name: Architetture dei sistemi di elaborazione
shortcode: 02GOLOV
cfu: 10
teachingPeriod: 1-1
teacherId: 12684
isOverBooking: false
isInPersonalStudyPlan: true
isModule: false
- id: 252842
name: Human Computer Interaction
shortcode: 02JSKOV
cfu: 6
teachingPeriod: 1-1
teacherId: 25734
isOverBooking: false
isInPersonalStudyPlan: true
isModule: false
- id: 253378
name: Cryptography
shortcode: 03LPYOV
cfu: 6
teachingPeriod: 2-2
teacherId: 13461
isOverBooking: false
isInPersonalStudyPlan: true
isModule: false
- id: null
name: Tesi
shortcode: 29EBHOV
cfu: 30
teachingPeriod: null
teacherId: null
isOverBooking: false
isInPersonalStudyPlan: true
isModule: false
500:
$ref: '#/components/responses/ErrorResponse'
/courses/{courseId}:
get:
tags:
- Courses
summary: Show course | Mostra corso
operationId: getCourse
parameters:
- name: courseId
in: path
required: true
schema:
type: integer
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Course'
required: [ data ]
404:
description: Course not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/courses/{courseId}/files:
get:
tags:
- Courses
summary: List files | Elenca file
operationId: getCourseFiles
parameters:
- name: courseId
in: path
required: true
schema:
type: integer
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/CourseDirectoryContent'
required: [ data ]
example:
data:
- id: "33248655"
type: "directory"
name: "videolectures"
files:
- id: "33248890"
type: "file"
name: "HCI2021-L01 2021-09-28 13-06-26.m4v"
sizeInKiloBytes: 123428
mimeType: "video/x-m4v"
createdAt: "2021-09-28T16:31:43Z"
- id: "33251708"
type: "file"
name: "HCI2021-L02 2021-09-30 08-34-32.mp4"
sizeInKiloBytes: 248172
mimeType: "video/mp4"
createdAt: "2021-09-30T10:20:50Z"
- id: "33256476"
type: "file"
name: "HCI2021-L03 2021-10-05 13-06-47.mp4"
sizeInKiloBytes: 243792
mimeType: "video/mp4"
createdAt: "2021-10-05T15:00:15Z"
- id: "33257988"
type: "file"
name: "HCI2021-L04 2021-10-07 08-35-46.mp4"
sizeInKiloBytes: 244993
mimeType: "video/mp4"
createdAt: "2021-10-07T11:12:25Z"
- id: "33262287"
type: "file"
name: "HCI2021-L05 2021-10-12 13-05-46.mp4"
sizeInKiloBytes: 298172
mimeType: "video/mp4"
createdAt: "2021-10-12T16:11:46Z"
- id: "33265387"
type: "file"
name: "HCI2021-L06 2021-10-14 08-35-12.mp4"
sizeInKiloBytes: 285926
mimeType: "video/mp4"
createdAt: "2021-10-14T11:25:20Z"
- id: "33269079"
type: "file"
name: "HCI2021-L07 2021-10-19 13-10-40.mp4"
sizeInKiloBytes: 234466
mimeType: "video/mp4"
createdAt: "2021-10-19T15:02:22Z"
- id: "33270699"
type: "file"
name: "HCI2021-L08 2021-10-21 08-35-17.mp4"
sizeInKiloBytes: 240828
mimeType: "video/mp4"
createdAt: "2021-10-21T10:44:22Z"
- id: "33273765"
type: "file"
name: "HCI2021-L09 2021-10-26 13-08-27.mp4"
sizeInKiloBytes: 321979
mimeType: "video/mp4"
createdAt: "2021-10-26T16:06:46Z"
- id: "33275522"
type: "file"
name: "HCI2021-L10 2021-10-28 08-35-26.mp4"
sizeInKiloBytes: 281542
mimeType: "video/mp4"
createdAt: "2021-10-28T10:59:56Z"
- id: "33278303"
type: "file"
name: "HCI2021-L11 2021-11-02 13-07-13.mp4"
sizeInKiloBytes: 259925
mimeType: "video/mp4"
createdAt: "2021-11-02T17:34:17Z"
- id: "33280035"
type: "file"
name: "HCI2021-L12 2021-11-04 08-35-42.mp4"
sizeInKiloBytes: 269000
mimeType: "video/mp4"
createdAt: "2021-11-04T15:18:00Z"
- id: "33283202"
type: "file"
name: "HCI2021-L13 2021-11-09 13-05-21.mp4"
sizeInKiloBytes: 124877
mimeType: "video/mp4"
createdAt: "2021-11-09T17:55:12Z"
- id: "33285203"
type: "file"
name: "HCI2021-L14 2021-11-11 08-34-16.mp4"
sizeInKiloBytes: 164749
mimeType: "video/mp4"
createdAt: "2021-11-11T18:54:08Z"
- id: "33288841"
type: "file"
name: "HCI2021-L15 2021-11-16 13-08-31.mp4"
sizeInKiloBytes: 413016
mimeType: "video/mp4"
createdAt: "2021-11-16T17:39:12Z"
- id: "33290368"
type: "file"
name: "HCI2021-L16 2021-11-18 08-35-25.mp4"
sizeInKiloBytes: 175214
mimeType: "video/mp4"
createdAt: "2021-11-18T16:32:30Z"
- id: "33293068"
type: "file"
name: "HCI2021-L17 2021-11-23 13-07-21.mp4"
sizeInKiloBytes: 167637
mimeType: "video/mp4"
createdAt: "2021-11-23T15:14:30Z"
- id: "33294893"
type: "file"
name: "HCI2021-L18 2021-11-25 08-38-18.mp4"
sizeInKiloBytes: 177894
mimeType: "video/mp4"
createdAt: "2021-11-25T19:07:01Z"
- id: "33297785"
type: "file"
name: "HCI2021-L19 2021-11-30 13-05-06.mp4"
sizeInKiloBytes: 204728
mimeType: "video/mp4"
createdAt: "2021-11-30T18:40:05Z"
- id: "33298944"
type: "file"
name: "HCI2021-L20 2021-12-02 08-33-29.mp4"
sizeInKiloBytes: 181211
mimeType: "video/mp4"
createdAt: "2021-12-02T14:28:22Z"
- id: "33301586"
type: "file"
name: "HCI2021-L21 2021-12-07 13-10-43.mp4"
sizeInKiloBytes: 161114
mimeType: "video/mp4"
createdAt: "2021-12-07T14:51:40Z"
- id: "33302797"
type: "file"
name: "HCI2021-L22 2021-12-09 08-36-04.mp4"
sizeInKiloBytes: 171358
mimeType: "video/mp4"
createdAt: "2021-12-09T18:13:39Z"
- id: "33305668"
type: "file"
name: "HCI2021-L23 2021-12-14 13-04-34.mp4"
sizeInKiloBytes: 236985
mimeType: "video/mp4"
createdAt: "2021-12-14T17:25:16Z"
- id: "33307385"
type: "file"
name: "HCI2021-L24 2021-12-16 08-34-14.mp4"
sizeInKiloBytes: 178860
mimeType: "video/mp4"
createdAt: "2021-12-16T19:18:25Z"
- id: "33309925"
type: "file"
name: "HCI2021-L25 2021-12-21 13-04-41.mp4"
sizeInKiloBytes: 166945
mimeType: "video/mp4"
createdAt: "2021-12-21T15:00:46Z"
- id: "33314553"
type: "file"
name: "HCI2021-L26 2022-01-11 13-00-00.mp4"
sizeInKiloBytes: 182258
mimeType: "video/mp4"
createdAt: "2022-01-11T14:49:59Z"
- id: "33325555"
type: "file"
name: "2022-02-04-results-written-test.pdf"
sizeInKiloBytes: 412
mimeType: "application/pdf"
createdAt: "2022-02-18T01:20:21Z"
- id: "33357023"
type: "file"
name: "2022-02-23-results-written-test.pdf"
sizeInKiloBytes: 404
mimeType: "application/pdf"
createdAt: "2022-03-18T22:29:45Z"
- id: "33405431"
type: "file"
name: "2022-06-29-results-written-test.pdf"
sizeInKiloBytes: 127
mimeType: "application/pdf"
createdAt: "2022-07-20T19:34:00Z"
404:
description: Course not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
$ref: '#/components/responses/ErrorResponse'
/courses/{courseId}/files/{fileId}:
get:
tags:
- Courses
summary: Download file | Scarica file
operationId: getCourseFile
parameters:
- name: courseId
in: path
required: true
schema:
type: integer
- name: fileId
in: path
required: true
schema:
type: string
responses:
302:
description: Redirect to file download
404:
description: Course or file not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
$ref: '#/components/responses/ErrorResponse'
/courses/{courseId}/assignments:
get:
tags:
- Courses
summary: List assignments | Elenca elaborati
operationId: getCourseAssignments
parameters:
- name: courseId
in: path
required: true
schema:
type: integer
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/CourseAssignment'
required: [ data ]
example:
data:
- id: 1003948
description: "extrapoints2"
mimeType: "application/x-zip-compressed"
filename: "extrapoints2.zip"
uploadedAt: "2022-01-21T14:38:00Z"
deletedAt: null
url: "https://file.didattica.polito.it/down/ELABORATI_PRE/1003948/S290683/14576f69df588d55b631c3c3c30de3f5/6305eae6"
sizeInKiloBytes: 195
- id: 993784
description: "extrapoints1"
mimeType: "application/x-zip-compressed"
filename: "extrapoints1.zip"
uploadedAt: "2022-01-10T18:53:00Z"
deletedAt: null
url: "https://file.didattica.polito.it/down/ELABORATI_PRE/993784/S290683/15c275f7f7682c6acb5acd07d24590a9/6305eae6"
sizeInKiloBytes: 401
- id: 982517
description: "lab_09"
mimeType: "application/zip"
filename: "lab_09.zip"
uploadedAt: "2021-12-16T22:48:00Z"
deletedAt: null
url: "https://file.didattica.polito.it/down/ELABORATI_PRE/982517/S290683/29288344d27567de6ddf0fa718b980a5/6305eae6"
sizeInKiloBytes: 126
- id: 979076
description: "lab_08"
mimeType: "application/x-zip-compressed"
filename: "lab8.zip"
uploadedAt: "2021-12-10T20:13:00Z"
deletedAt: null
url: "https://file.didattica.polito.it/down/ELABORATI_PRE/979076/S290683/3fecdf972707d6cbc439ed0fbbbe726a/6305eae6"
sizeInKiloBytes: 136
- id: 970722
description: "lab_06"
mimeType: "application/x-zip-compressed"
filename: "lab_06.zip"
uploadedAt: "2021-11-26T12:11:00Z"
deletedAt: null
url: "https://file.didattica.polito.it/down/ELABORATI_PRE/970722/S290683/bc51c37cf1368917a24de8d571b069bd/6305eae6"
sizeInKiloBytes: 169
- id: 948012
description: "lab_04"
mimeType: "application/zip"
filename: "lab_04.zip"
uploadedAt: "2021-10-30T17:26:00Z"
deletedAt: null
url: "https://file.didattica.polito.it/down/ELABORATI_PRE/948012/S290683/ca52325301df0130d718c7a0525df288/6305eae6"
sizeInKiloBytes: 259
- id: 947503
description: "lab_03"
mimeType: "application/x-zip-compressed"
filename: "lab_03.zip"
uploadedAt: "2021-10-29T12:33:00Z"
deletedAt: null
url: "https://file.didattica.polito.it/down/ELABORATI_PRE/947503/S290683/b829dada99af4b2576e551bd852e0a25/6305eae6"
sizeInKiloBytes: 139
- id: 941444
description: "lab_02"
mimeType: "application/zip"
filename: "lab_02.zip"
uploadedAt: "2021-10-22T12:12:00Z"
deletedAt: null
url: "https://file.didattica.polito.it/down/ELABORATI_PRE/941444/S290683/08ec123878543394393bd31719863eda/6305eae6"
sizeInKiloBytes: 305
- id: 934034
description: "lab_01"
mimeType: "application/x-zip-compressed"
filename: "lab_01.zip"
uploadedAt: "2021-10-13T11:20:00Z"
deletedAt: null
url: "https://file.didattica.polito.it/down/ELABORATI_PRE/934034/S290683/fd675d8a411d0747885b24e473a5d683/6305eae6"
sizeInKiloBytes: 144
404:
description: Course not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
$ref: '#/components/responses/ErrorResponse'
post:
tags:
- Courses
summary: Upload assignment | Carica elaborato
operationId: uploadCourseAssignment
parameters:
- name: courseId
in: path
required: true
schema:
type: integer
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/CourseAssignmentUpload'
required: true
responses:
200:
description: Success
404:
description: Course not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
$ref: '#/components/responses/ErrorResponse'
/courses/{courseId}/assignments/{assignmentId}:
patch:
tags:
- Courses
summary: Update assignment | Aggiorna elaborato
operationId: updateAssignment
parameters:
- $ref: '#/components/parameters/courseIdParam'
- $ref: '#/components/parameters/assignmentIdParam'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAssignmentRequest'
responses:
200:
description: Assignment successfully updated
404:
description: Course or assignment not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
$ref: '#/components/responses/ErrorResponse'
/courses/{courseId}/guide:
get:
tags:
- Courses
summary: Show guide | Mostra guida
operationId: getCourseGuide
parameters:
- name: courseId
in: path
required: true
schema:
type: integer
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array