Closed rebuglio closed 1 year ago
The endpoint https://app.didattica.polito.it/api/courses/{courseId}/videolectures, when no video lectures are present, returns
https://app.didattica.polito.it/api/courses/{courseId}/videolectures
HTTP: 404 Body:
{ "code": -404, "message": "videolecture_not_found" }
Instead of the expected result: HTTP: 200 Body:
{ "data": [] }
Note: This behavior affects the polito/students-app, which throws an exception for courses without video lectures.
Proposed solutions: Correct the API, or amend the documentation to include this response.
Hello Massimo, we are aware of the issue, it will be fixed in the upcoming days.
The endpoint
https://app.didattica.polito.it/api/courses/{courseId}/videolectures
, when no video lectures are present, returnsHTTP: 404 Body:
Instead of the expected result: HTTP: 200 Body:
Note: This behavior affects the polito/students-app, which throws an exception for courses without video lectures.
Proposed solutions: Correct the API, or amend the documentation to include this response.