-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenapi.json
1 lines (1 loc) · 82.3 KB
/
openapi.json
1
{"openapi":"3.0.2","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/token":{"post":{"tags":["token"],"summary":"Login For Access Token","operationId":"login_for_access_token_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_for_access_token_token_post"}}},"required":true},"responses":{"200":{"description":"Get token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users":{"get":{"tags":["users"],"summary":"Get Current","operationId":"getCurrentUser","responses":{"200":{"description":"Get current user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAPIModel"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["users"],"summary":"Create User","description":"Create a user","operationId":"createUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserModel"}}},"required":true},"responses":{"200":{"description":"Add new user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{uid}":{"get":{"tags":["users"],"summary":"Show User","description":"Get a single user with given userID","operationId":"getSingleUser","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"}],"responses":{"200":{"description":"Get a single user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAPIModel"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["users"],"summary":"Delete User","description":"Delete a user with given userID","operationId":"deleteUser","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"}],"responses":{"200":{"description":"Delete user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAPIModel"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{uid}/change-password":{"put":{"tags":["users"],"summary":"Update Password","description":"Update password of a user with given userID","operationId":"updatePassword","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePasswordModel"}}},"required":true},"responses":{"200":{"description":"Update password of a user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{uid}/current-semester":{"put":{"tags":["users"],"summary":"Update Current Semester","description":"Update current semester ID of a user with given userID","operationId":"updateCurrentSemester","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSemesterModel"}}},"required":true},"responses":{"200":{"description":"Update current semester ID of a user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{uid}/current-university":{"put":{"tags":["users"],"summary":"Update Current University","description":"Update current university ID of a user with given userID","operationId":"updateCurrentUniversity","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUniversityModel"}}},"required":true},"responses":{"200":{"description":"Update current university ID of a user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{uid}/entrance-year":{"put":{"tags":["users"],"summary":"Update Entrance Year","description":"Update entrance year of a user with given userID","operationId":"updateEntranceyear","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEntranceYearModel"}}},"required":true},"responses":{"200":{"description":"Update entrance year of a user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/professors":{"post":{"tags":["users"],"summary":"Create Professor User","description":"Create a professor user","operationId":"createProfessorUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserModel"}}},"required":true},"responses":{"200":{"description":"Add new professor user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{uid}/semesters":{"get":{"tags":["semesters"],"summary":"List Semesters","description":"list all semesters of a user with given userID","operationId":"listSemestersOfUser","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"}],"responses":{"200":{"description":"List all semesters","content":{"application/json":{"schema":{"title":"Response List Semesters Users Uid Semesters Get","type":"array","items":{"$ref":"#/components/schemas/SemesterAPIModel"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["semesters"],"summary":"Create Semester","description":"Create a semester for a user with given userID","operationId":"createSemester","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSemesterModel"}}},"required":true},"responses":{"200":{"description":"Add new semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{uid}/semesters/{sid}":{"get":{"tags":["semesters"],"summary":"Show Semester","description":"Get a single semester with given userID and semesterID","operationId":"getSingleSemester","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"}],"responses":{"200":{"description":"Get a single semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemesterAPIModel"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"put":{"tags":["semesters"],"summary":"Update Semester","description":"Update a semester with given userID and semesterID","operationId":"updateSemester","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserSemesterModel"}}},"required":true},"responses":{"200":{"description":"Update a semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["semesters"],"summary":"Delete Semester","description":"Delete a semester with given userID and semesterID","operationId":"deleteSemester","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"}],"responses":{"200":{"description":"Delete semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{uid}/semesters/{sid}/lessons":{"get":{"tags":["lessons"],"summary":"List Lessons","description":"List all lessons of a semester with given userID, semesterID","operationId":"listLessonsOfSemester","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"}],"responses":{"200":{"description":"List all lessons of a semester","content":{"application/json":{"schema":{"title":"Response List Lessons Users Uid Semesters Sid Lessons Get","type":"array","items":{"$ref":"#/components/schemas/LessonAPIModel"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["lessons"],"summary":"Create Lesson","description":"Create a lessons for a semester with given userID, semesterID","operationId":"createLesson","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonModel"}}},"required":true},"responses":{"200":{"description":"Add new lesson into a semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{uid}/semesters/{sid}/lessons/{lid}":{"get":{"tags":["lessons"],"summary":"Show Lesson","description":"Get a single lesson with given userID, semesterID and lessonID","operationId":"getSingleLesson","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"},{"required":true,"schema":{"title":"Lid","type":"string"},"name":"lid","in":"path"}],"responses":{"200":{"description":"Get a single lesson of a semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonAPIModel"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"put":{"tags":["lessons"],"summary":"Update Lesson","description":"Update a lesson with given userID, semesterID and lessonID","operationId":"updateLesson","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"},{"required":true,"schema":{"title":"Lid","type":"string"},"name":"lid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLessonModel"}}},"required":true},"responses":{"200":{"description":"Update a lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["lessons"],"summary":"Delete Lesson","description":"Delete a lesson with given userID, semesterID and lessonID","operationId":"deleteLesson","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"},{"required":true,"schema":{"title":"Lid","type":"string"},"name":"lid","in":"path"}],"responses":{"200":{"description":"Delete lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{uid}/semesters/{sid}/lessons/{lid}/absences":{"post":{"tags":["lessons"],"summary":"Create Absence","description":"Create an absence for a lesson with given userID, semesterID and lessonID","operationId":"createAbsence","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"},{"required":true,"schema":{"title":"Lid","type":"string"},"name":"lid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonAbsenceModel"}}},"required":true},"responses":{"200":{"description":"Add absence into a lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["lessons"],"summary":"Delete Absence","description":"Delete an absence from a lesson with given userID, semesterID and lessonID","operationId":"deleteAbsence","parameters":[{"required":true,"schema":{"title":"Uid","type":"string"},"name":"uid","in":"path"},{"required":true,"schema":{"title":"Sid","type":"string"},"name":"sid","in":"path"},{"required":true,"schema":{"title":"Lid","type":"string"},"name":"lid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonAbsenceModel"}}},"required":true},"responses":{"200":{"description":"Delete absence into a lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities":{"get":{"tags":["universities"],"summary":"List Universities","description":"list all universities","operationId":"listUniversities","responses":{"200":{"description":"List all universities","content":{"application/json":{"schema":{"title":"Response List Universities Universities Get","type":"array","items":{"$ref":"#/components/schemas/UniversityAPIModel"}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}}}},"post":{"tags":["universities"],"summary":"Create University","description":"Create a university","operationId":"createUniversity","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityModel"}}},"required":true},"responses":{"200":{"description":"Add new university","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}":{"get":{"tags":["universities"],"summary":"Show University","description":"Get a single university with given universityID","operationId":"getSingleUniversity","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"responses":{"200":{"description":"Get a single university","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityAPIModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["universities"],"summary":"Delete University","description":"Delete a university with given universityID","operationId":"deleteUniversity","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"responses":{"200":{"description":"Delete university","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/update-name":{"put":{"tags":["universities"],"summary":"Update University Name","description":"Update name of a university with given universityID","operationId":"updateUniversityName","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUniversityNameModel"}}},"required":true},"responses":{"200":{"description":"Update a university name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/current-semester":{"get":{"tags":["universities"],"summary":"Show University Current Semester","description":"Get current semester of a university with given universityID","operationId":"getCurrentUniversitySemester","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"responses":{"200":{"description":"Get current semester of a university","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversitySemesterModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["universities"],"summary":"Update University Current Semester","description":"Update current semester of a university with given universityID","operationId":"updateUniversityCurrentSemester","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSemesterModel"}}},"required":true},"responses":{"200":{"description":"Update current semester of a university","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/semesters":{"get":{"tags":["university semesters"],"summary":"List University Semesters","description":"list all semesters of a university with given universityID","operationId":"listUniversitySemesters","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"responses":{"200":{"description":"List all university semeseters","content":{"application/json":{"schema":{"title":"Response List University Semesters Universities Unid Semesters Get","type":"array","items":{"$ref":"#/components/schemas/UniversitySemesterModel"}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["university semesters"],"summary":"Create University Semester","description":"Create semester for a university with given universityID","operationId":"createUniversitySemester","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversitySemesterModel"}}},"required":true},"responses":{"200":{"description":"Add new university semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversitySemesterModel"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/semesters/{unisid}":{"get":{"tags":["university semesters"],"summary":"Show University Semester","description":"Get a single semester of a university with given universityID and universitySemesterID","operationId":"getSingleUniversitySemesters","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"}],"responses":{"200":{"description":"List a university semeseters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversitySemesterModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["university semesters"],"summary":"Update University Semester","description":"Update university of a semester with given universityID and universitySemesterID","operationId":"updateUniversitySemester","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversitySemesterModel"}}},"required":true},"responses":{"200":{"description":"Update a university semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["university semesters"],"summary":"Delete University Semester","description":"Delete a university semester with given universityID and universitySemesterID","operationId":"deleteUniversitySemester","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"}],"responses":{"200":{"description":"Delete university semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/semesters/{unisid}/lessons":{"get":{"tags":["university lessons"],"summary":"List University Lessons","description":"list all lessons for a semesters of a university with given universityID and universitySemesterID","operationId":"listUniversitySemesterLessons","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"}],"responses":{"200":{"description":"List all lessons of a university semester","content":{"application/json":{"schema":{"title":"Response List University Lessons Universities Unid Semesters Unisid Lessons Get","type":"array","items":{"$ref":"#/components/schemas/UniversityLessonAPIModel"}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["university lessons"],"summary":"Create University Lesson","description":"Create a lesson for a semester of a university with given universityID and universitySemesterID","operationId":"createUniversityLesson","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityLessonModel"}}},"required":true},"responses":{"200":{"description":"Add new university lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/semesters/current-semester/lessons/find-code":{"get":{"tags":["university lessons"],"summary":"Show Lesson With Code","description":"Get a single lesson of a university semester with given universityID and Lesson Code","operationId":"getSingleLessonWithCode","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Code","type":"string"},"name":"code","in":"query"}],"responses":{"200":{"description":"Get a single lessons with code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityLessonAPIModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/universities/{unid}/semesters/{unisid}/lessons/{unilid}":{"get":{"tags":["university lessons"],"summary":"Show University Lesson","description":"Get a single lesson of a university semester with given universityID, universitySemesterID and universityLessonID","operationId":"getSingleUniversitySemesterLesson","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"},{"required":true,"schema":{"title":"Unilid","type":"string"},"name":"unilid","in":"path"}],"responses":{"200":{"description":"Get a single lessons of a university semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityLessonAPIModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["university lessons"],"summary":"Update University Lesson","description":"Update lesson of a university semester with given universityID, universitySemesterID and universityLessonID","operationId":"updateUniversityLesson","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"},{"required":true,"schema":{"title":"Unilid","type":"string"},"name":"unilid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityLessonAPIModel"}}},"required":true},"responses":{"200":{"description":"Update a university lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["university lessons"],"summary":"Delete University Lesson","description":"Delete a university lesson with given universityID, universitySemesterID and universityLessonID","operationId":"deleteUniversityLesson","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"},{"required":true,"schema":{"title":"Unilid","type":"string"},"name":"unilid","in":"path"}],"responses":{"200":{"description":"Delete university lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/semesters/{unisid}/lessons/{unilid}/sections/{secid}":{"put":{"tags":["university sections"],"summary":"Update Lesson Section","description":"Update section of a lesson with given universityID, universitySemesterID, universityLessonID and sectionID","operationId":"updateLessonSection","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"},{"required":true,"schema":{"title":"Unilid","type":"string"},"name":"unilid","in":"path"},{"required":true,"schema":{"title":"Secid","type":"string"},"name":"secid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversitySectionModel"}}},"required":true},"responses":{"200":{"description":"Update a lesson section","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["university sections"],"summary":"Delete Lesson Section","description":"Delete a lesson section with given universityID, universitySemesterID, universityLessonID and sectionID","operationId":"deleteLessonSection","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Unisid","type":"string"},"name":"unisid","in":"path"},{"required":true,"schema":{"title":"Unilid","type":"string"},"name":"unilid","in":"path"},{"required":true,"schema":{"title":"Secid","type":"string"},"name":"secid","in":"path"}],"responses":{"200":{"description":"Delete a lesson section","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/departments":{"get":{"tags":["departments"],"summary":"List University Departments","description":"list all departments of a university with given universityID","operationId":"listUniversityDepartments","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"responses":{"200":{"description":"List all university departments","content":{"application/json":{"schema":{"title":"Response List University Departments Universities Unid Departments Get","type":"array","items":{"$ref":"#/components/schemas/UniversityDepartmentModel"}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["departments"],"summary":"Create University Department","description":"Create department for a university with given universityID","operationId":"createUniversityDepartment","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityDepartmentModel"}}},"required":true},"responses":{"200":{"description":"Add new university department","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/departments/{depid}":{"get":{"tags":["departments"],"summary":"Show University Department","description":"Get a single semester of a university with given universityID and universityDepartmentID","operationId":"getSingleUniversityDepartment","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"}],"responses":{"200":{"description":"Show a university department","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityDepartmentModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["departments"],"summary":"Update University Department","description":"Update department of a university with given universityID and universityDepartmentID","operationId":"updateUniversityDepartment","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityDepartmentModel"}}},"required":true},"responses":{"200":{"description":"Update a university department","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["departments"],"summary":"Delete University Department","description":"Delete a university department with given universityID and universitySemesterID","operationId":"deleteUniversityDepartment","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"}],"responses":{"200":{"description":"Delete university department","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/departments/{depid}/curriculums":{"get":{"tags":["curriculums"],"summary":"List Department Curriculums","description":"list all curriculums of a department of a university with given universityID and universityDepartmentID","operationId":"listUniversityDepartmentCurriculums","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"}],"responses":{"200":{"description":"List all university curriculums","content":{"application/json":{"schema":{"title":"Response List Department Curriculums Universities Unid Departments Depid Curriculums Get","type":"array","items":{"$ref":"#/components/schemas/UniversityCurriculumModel"}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["curriculums"],"summary":"Create Department Curriculum","description":"Create department for a university with given universityID and universityDepartmentID","operationId":"createUniversityDepartmentCurriculum","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityCurriculumModel"}}},"required":true},"responses":{"200":{"description":"Add new university department curriculum","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/departments/{depid}/curriculums/{curid}":{"get":{"tags":["curriculums"],"summary":"Show Department Curriculum","description":"Get a single semester of a university with given universityID, universityDepartmentID and departmentCurriculumID","operationId":"getSingleUniversityDepartmentCurriculum","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"}],"responses":{"200":{"description":"Show a university department curriculum","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityCurriculumModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["curriculums"],"summary":"Update Department Curriculum","description":"Update department of a university with given universityID, universityDepartmentID and departmentCurriculumID","operationId":"updateUniversityDepartmentCurriculum","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversityCurriculumModel"}}},"required":true},"responses":{"200":{"description":"Update a university department curriculum","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["curriculums"],"summary":"Delete Department Curriculum","description":"Delete a university department with given universityID, universityDepartmentID and departmentCurriculumID","operationId":"deleteUniversityDepartmentCurriculum","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"}],"responses":{"200":{"description":"Delete university department curriculum","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/departments/{depid}/curriculums/{curid}/semesters":{"get":{"tags":["curriculum semesters"],"summary":"List Curriculum Semesters","description":"list all semesters of a curriculum of a department with given universityID, universityDepartmentID and departmentCurriculumID","operationId":"listCurriculumSemesters","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"}],"responses":{"200":{"description":"List all curriculum semesters","content":{"application/json":{"schema":{"title":"Response List Curriculum Semesters Universities Unid Departments Depid Curriculums Curid Semesters Get","type":"array","items":{"$ref":"#/components/schemas/CurriculumSemesterModel"}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["curriculum semesters"],"summary":"Create Curriculum Semester","description":"Create semester for a curriculum with given universityID, universityDepartmentID and departmentCurriculumID","operationId":"createCurriculumSemester","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurriculumSemesterModel"}}},"required":true},"responses":{"200":{"description":"Add new curriculum semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/departments/{depid}/curriculums/{curid}/semesters/{cursid}":{"get":{"tags":["curriculum semesters"],"summary":"Show Curriculum Semester","description":"Get a single semester of a curriculum with given universityID, universityDepartmentID, departmentCurriculumID and curriculumSemesterID","operationId":"getSingleCurriculumSemester","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"},{"required":true,"schema":{"title":"Cursid","type":"string"},"name":"cursid","in":"path"}],"responses":{"200":{"description":"Show a university curriculum semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurriculumSemesterModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["curriculum semesters"],"summary":"Update Curriculum Semester","description":"Update semester of a curriculum with given universityID, universityDepartmentID, departmentCurriculumID and curriculumSemesterID","operationId":"updateCurriculumSemester","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"},{"required":true,"schema":{"title":"Cursid","type":"string"},"name":"cursid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurriculumSemesterModel"}}},"required":true},"responses":{"200":{"description":"Update a curriculum semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["curriculum semesters"],"summary":"Delete Curriculum Semester","description":"Delete a university department with given universityID, universityDepartmentID, departmentCurriculumID and curriculumSemesterID","operationId":"deleteCurriculumSemester","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"},{"required":true,"schema":{"title":"Cursid","type":"string"},"name":"cursid","in":"path"}],"responses":{"200":{"description":"Delete curriculum semester","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/departments/{depid}/curriculums/{curid}/semesters/{cursid}/lessons":{"get":{"tags":["curriculum lessons"],"summary":"List Curriculum Lessons","description":"list all lessons of a curriculum semester of a department with given universityID, universityDepartmentID, departmentCurriculumID and curriculumSemesterID","operationId":"listCurriculumLessons","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"},{"required":true,"schema":{"title":"Cursid","type":"string"},"name":"cursid","in":"path"}],"responses":{"200":{"description":"List all curriculum lessons","content":{"application/json":{"schema":{"title":"Response List Curriculum Lessons Universities Unid Departments Depid Curriculums Curid Semesters Cursid Lessons Get","type":"array","items":{"$ref":"#/components/schemas/CurriculumLessonModel"}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["curriculum lessons"],"summary":"Create Curriculum Lesson","description":"Create lesson for a curriculum semester with given universityID, universityDepartmentID, departmentCurriculumID and curriculumSemesterID","operationId":"createCurriculumLesson","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"},{"required":true,"schema":{"title":"Cursid","type":"string"},"name":"cursid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurriculumLessonModel"}}},"required":true},"responses":{"200":{"description":"Add new curriculum lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/departments/{depid}/curriculums/{curid}/semesters/{cursid}/lessons/{curlid}":{"get":{"tags":["curriculum lessons"],"summary":"Show Curriculum Lesson","description":"Get a single lesson of a curriculum semester with given universityID, universityDepartmentID, departmentCurriculumID, curriculumSemesterID and curriculumLessonID","operationId":"getSingleCurriculumLesson","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"},{"required":true,"schema":{"title":"Cursid","type":"string"},"name":"cursid","in":"path"},{"required":true,"schema":{"title":"Curlid","type":"string"},"name":"curlid","in":"path"}],"responses":{"200":{"description":"Show a curriculum semester lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurriculumLessonModel"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["curriculum lessons"],"summary":"Update Curriculum Lesson","description":"Update lesson of a curriculum semester with given universityID, universityDepartmentID, departmentCurriculumID, curriculumSemesterID and curriculumLessonID","operationId":"updateCurriculumLesson","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"},{"required":true,"schema":{"title":"Cursid","type":"string"},"name":"cursid","in":"path"},{"required":true,"schema":{"title":"Curlid","type":"string"},"name":"curlid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurriculumLessonModel"}}},"required":true},"responses":{"200":{"description":"Update a curriculum lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["curriculum lessons"],"summary":"Delete Curriculum Lesson","description":"Delete a lesson of a curriculum semester with given universityID, universityDepartmentID, departmentCurriculumID, curriculumSemesterID and curriculumLessonID","operationId":"deleteCurriculumLesson","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"},{"required":true,"schema":{"title":"Depid","type":"string"},"name":"depid","in":"path"},{"required":true,"schema":{"title":"Curid","type":"string"},"name":"curid","in":"path"},{"required":true,"schema":{"title":"Cursid","type":"string"},"name":"cursid","in":"path"},{"required":true,"schema":{"title":"Curlid","type":"string"},"name":"curlid","in":"path"}],"responses":{"200":{"description":"Delete curriculum lesson","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/universities/{unid}/schedule":{"post":{"tags":["scheduler"],"summary":"Create Schedule","description":"Create schedules for given lessons","operationId":"createSchedule","parameters":[{"required":true,"schema":{"title":"Unid","type":"string"},"name":"unid","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"title":"Lesson Codes","type":"array","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Create schedules for given lessons","content":{"application/json":{"schema":{"title":"Response Create Schedule Universities Unid Schedule Post","type":"array","items":{"type":"object","additionalProperties":{"type":"integer"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AbsenceModel":{"title":"AbsenceModel","required":["week","day","hour","isLab"],"type":"object","properties":{"week":{"title":"Week","minimum":0.0,"type":"integer"},"day":{"title":"Day","maximum":4.0,"minimum":0.0,"type":"integer"},"hour":{"title":"Hour","maximum":15.0,"minimum":0.0,"type":"integer"},"isLab":{"title":"Islab","maximum":1.0,"minimum":0.0,"type":"integer"}}},"Body_login_for_access_token_token_post":{"title":"Body_login_for_access_token_token_post","required":["username","password"],"type":"object","properties":{"grant_type":{"title":"Grant Type","pattern":"password","type":"string"},"username":{"title":"Username","type":"string"},"password":{"title":"Password","type":"string"},"scope":{"title":"Scope","type":"string","default":""},"client_id":{"title":"Client Id","type":"string"},"client_secret":{"title":"Client Secret","type":"string"}}},"CurriculumLessonModel":{"title":"CurriculumLessonModel","required":["name","code","lessonType"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","type":"string"},"code":{"title":"Code","type":"string"},"lessonType":{"title":"Lessontype","type":"string"}},"example":{"name":"PHYSICS I","code":"PHYS101","lessonType":"science"}},"CurriculumSemesterModel":{"title":"CurriculumSemesterModel","required":["semester"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"semester":{"title":"Semester","exclusiveMaximum":9.0,"exclusiveMinimum":0.0,"type":"integer"},"lessons":{"title":"Lessons","type":"array","items":{"$ref":"#/components/schemas/CurriculumLessonModel"},"default":[]}},"example":{"semester":1}},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"LessonAPIModel":{"title":"LessonAPIModel","type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","type":"string"},"instructor":{"title":"Instructor","type":"string"},"absenceLimit":{"title":"Absencelimit","type":"integer"},"slots":{"title":"Slots","type":"array","items":{"type":"array","items":{"type":"integer"}}},"absences":{"title":"Absences","type":"array","items":{"type":"array","items":{"type":"integer"}}}},"example":{"_id":"61ddea901311ecaed99afb7c","name":"Algebra","instructor":"Jack Joe","absenceLimit":21,"slots":[[2,7,0],[2,8,0]],"absences":[[0,2,7,0],[0,2,8,0]]}},"LessonAbsenceModel":{"title":"LessonAbsenceModel","required":["absence"],"type":"object","properties":{"absence":{"$ref":"#/components/schemas/AbsenceModel"}},"example":{"absence":{"week":0,"day":2,"hour":7,"isLab":0}}},"LessonModel":{"title":"LessonModel","required":["name","instructor","absenceLimit","slots"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","minLength":1,"type":"string"},"instructor":{"title":"Instructor","minLength":1,"type":"string"},"absenceLimit":{"title":"Absencelimit","minimum":0.0,"type":"integer"},"slots":{"title":"Slots","type":"array","items":{"$ref":"#/components/schemas/SlotModel"}},"absences":{"title":"Absences","type":"array","items":{"$ref":"#/components/schemas/AbsenceModel"},"default":[]}},"example":{"name":"Algebra","instructor":"Jack Joe","absenceLimit":21,"slots":[{"day":2,"hour":7,"isLab":0},{"day":2,"hour":8,"isLab":0}],"absences":[{"week":0,"day":2,"hour":7,"isLab":0},{"week":0,"day":2,"hour":8,"isLab":0}]}},"Message":{"title":"Message","required":["message"],"type":"object","properties":{"message":{"title":"Message","type":"string"}}},"MessageCreate":{"title":"MessageCreate","required":["_id","message"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"message":{"title":"Message","type":"string"}},"example":{"_id":"61ddea901311ecaed99afb7c","message":"string"}},"SemesterAPIModel":{"title":"SemesterAPIModel","type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","type":"string"},"startDate":{"title":"Startdate","type":"string","format":"date-time"},"endDate":{"title":"Enddate","type":"string","format":"date-time"},"startHour":{"title":"Starthour","type":"string"},"dLesson":{"title":"Dlesson","type":"integer"},"dBreak":{"title":"Dbreak","type":"integer"},"slotCount":{"title":"Slotcount","type":"integer"}},"example":{"_id":"61ddea901311ecaed99afb7c","name":"2020-21 Spring","startDate":"2022-02-18T00:00:00Z","endDate":"2022-06-18T00:00:00Z","startHour":"8.10","dLesson":50,"dBreak":10,"slotCount":12}},"SlotModel":{"title":"SlotModel","required":["day","hour","isLab"],"type":"object","properties":{"day":{"title":"Day","maximum":4.0,"minimum":0.0,"type":"integer"},"hour":{"title":"Hour","maximum":15.0,"minimum":0.0,"type":"integer"},"isLab":{"title":"Islab","maximum":1.0,"minimum":0.0,"type":"integer"}}},"Token":{"title":"Token","required":["access_token","token_type"],"type":"object","properties":{"access_token":{"title":"Access Token","type":"string"},"token_type":{"title":"Token Type","type":"string"}}},"UniversityAPIModel":{"title":"UniversityAPIModel","type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","type":"string"},"curSemesterID":{"title":"Cursemesterid","type":"string"}},"example":{"_id":"61fc266ae3d749b1d65c17c6","name":"AGU","curSemesterID":"61fc266ae3d749b1d65c17c7"}},"UniversityCurriculumModel":{"title":"UniversityCurriculumModel","required":["name","startYear","endYear"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","minLength":1,"type":"string"},"startYear":{"title":"Startyear","type":"integer"},"endYear":{"title":"Endyear","type":"integer"},"semesters":{"title":"Semesters","type":"array","items":{"$ref":"#/components/schemas/CurriculumSemesterModel"},"default":[]}},"example":{"name":"2016 Later","startYear":2016,"endYear":2100}},"UniversityDepartmentModel":{"title":"UniversityDepartmentModel","required":["name"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","maxLength":100,"minLength":2,"type":"string"},"curriculums":{"title":"Curriculums","type":"array","items":{"$ref":"#/components/schemas/UniversityCurriculumModel"},"default":[]}},"example":{"name":"COMP"}},"UniversityLessonAPIModel":{"title":"UniversityLessonAPIModel","required":["name","code","ects","absenceLimit"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","type":"string"},"code":{"title":"Code","type":"string"},"ects":{"title":"Ects","minimum":0.0,"type":"number"},"absenceLimit":{"title":"Absencelimit","minimum":0.0,"type":"integer"},"sections":{"title":"Sections","type":"array","items":{"$ref":"#/components/schemas/UniversitySectionAPIModel"},"default":[]}},"example":{"name":"ART OF COMPUTING","code":"COMP101","ects":6,"absenceLimit":0}},"UniversityLessonModel":{"title":"UniversityLessonModel","required":["name","code","ects","absenceLimit","section","instructor","slots"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","type":"string"},"code":{"title":"Code","type":"string"},"ects":{"title":"Ects","minimum":0.0,"type":"number"},"absenceLimit":{"title":"Absencelimit","minimum":0.0,"type":"integer"},"section":{"title":"Section","type":"string"},"instructor":{"title":"Instructor","type":"string"},"slots":{"title":"Slots","type":"array","items":{"$ref":"#/components/schemas/UniversitySlotModel"}}},"example":{"name":"ART OF COMPUTING","code":"COMP101","ects":6,"absenceLimit":8,"section":"01","instructor":"JACK JOE","slots":[{"day":2,"hour":7,"isLab":0},{"day":2,"hour":8,"isLab":0}]}},"UniversityModel":{"title":"UniversityModel","required":["name"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","type":"string"},"departments":{"title":"Departments","type":"array","items":{"$ref":"#/components/schemas/UniversityDepartmentModel"},"default":[]},"semesters":{"title":"Semesters","type":"array","items":{"$ref":"#/components/schemas/UniversitySemesterModel"},"default":[]}},"example":{"name":"AGU"}},"UniversitySectionAPIModel":{"title":"UniversitySectionAPIModel","type":"object","properties":{"_id":{"title":" Id","type":"string"},"section":{"title":"Section","type":"string"},"instructor":{"title":"Instructor","type":"string"},"slots":{"title":"Slots","type":"array","items":{"type":"array","items":{"type":"integer"}}}},"example":{"section":"01","instructor":"JACK JOE","slots":[[2,7,0],[2,8,0]]}},"UniversitySectionModel":{"title":"UniversitySectionModel","required":["section","instructor","slots"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"section":{"title":"Section","type":"string"},"instructor":{"title":"Instructor","type":"string"},"slots":{"title":"Slots","type":"array","items":{"$ref":"#/components/schemas/UniversitySlotModel"}}},"example":{"section":"01","instructor":"JACK JOE","slots":[{"day":2,"hour":7,"isLab":0},{"day":2,"hour":8,"isLab":0}]}},"UniversitySemesterModel":{"title":"UniversitySemesterModel","required":["name"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","type":"string"},"lessons":{"title":"Lessons","type":"array","items":{"$ref":"#/components/schemas/UniversityLessonAPIModel"},"default":[]}},"example":{"name":"20-21 Spring"}},"UniversitySlotModel":{"title":"UniversitySlotModel","required":["day","hour","isLab"],"type":"object","properties":{"day":{"title":"Day","maximum":4.0,"minimum":0.0,"type":"integer"},"hour":{"title":"Hour","maximum":15.0,"minimum":0.0,"type":"integer"},"isLab":{"title":"Islab","maximum":1.0,"minimum":0.0,"type":"integer"}}},"UpdateEntranceYearModel":{"title":"UpdateEntranceYearModel","required":["entranceYear"],"type":"object","properties":{"entranceYear":{"title":"Entranceyear","type":"integer"}},"example":{"entranceYear":2018}},"UpdateLessonModel":{"title":"UpdateLessonModel","required":["name","instructor","absenceLimit","slots"],"type":"object","properties":{"name":{"title":"Name","type":"string"},"instructor":{"title":"Instructor","type":"string"},"absenceLimit":{"title":"Absencelimit","minimum":0.0,"type":"integer"},"slots":{"title":"Slots","type":"array","items":{"$ref":"#/components/schemas/SlotModel"}}},"example":{"name":"Algebra","instructor":"Jack Joe","absenceLimit":21,"slots":[{"day":2,"hour":7,"isLab":0},{"day":2,"hour":8,"isLab":0}]}},"UpdatePasswordModel":{"title":"UpdatePasswordModel","required":["password"],"type":"object","properties":{"password":{"title":"Password","type":"string"}},"example":{"password":"123456"}},"UpdateSemesterModel":{"title":"UpdateSemesterModel","required":["curSemesterID"],"type":"object","properties":{"curSemesterID":{"title":"Cursemesterid","type":"string"}},"example":{"curSemesterID":"61ddea901311ecaed99afb7f"}},"UpdateUniversityModel":{"title":"UpdateUniversityModel","required":["curUniversityID"],"type":"object","properties":{"curUniversityID":{"title":"Curuniversityid","type":"string"}},"example":{"curUniversityID":"61ddea901311ecaed99afb7g"}},"UpdateUniversityNameModel":{"title":"UpdateUniversityNameModel","required":["name"],"type":"object","properties":{"name":{"title":"Name","type":"string"}},"example":{"name":"AGU"}},"UpdateUserSemesterModel":{"title":"UpdateUserSemesterModel","required":["name","startDate","endDate","startHour","dLesson","dBreak","slotCount"],"type":"object","properties":{"name":{"title":"Name","type":"string"},"startDate":{"title":"Startdate","type":"string","format":"date-time"},"endDate":{"title":"Enddate","type":"string","format":"date-time"},"startHour":{"title":"Starthour","type":"string"},"dLesson":{"title":"Dlesson","exclusiveMinimum":0.0,"type":"integer"},"dBreak":{"title":"Dbreak","exclusiveMinimum":0.0,"type":"integer"},"slotCount":{"title":"Slotcount","exclusiveMaximum":16.0,"exclusiveMinimum":3.0,"type":"integer"}},"example":{"name":"2020-21 Spring","startDate":"2022-02-18T00:00:00Z","endDate":"2022-06-18T00:00:00Z","startHour":"8.10","dLesson":50,"dBreak":10,"slotCount":12}},"UserAPIModel":{"title":"UserAPIModel","type":"object","properties":{"_id":{"title":" Id","type":"string"},"email":{"title":"Email","type":"string","format":"email"},"userGroup":{"title":"Usergroup","type":"string"},"curSemesterID":{"title":"Cursemesterid","type":"string"},"curUniversityID":{"title":"Curuniversityid","type":"string"},"entranceYear":{"title":"Entranceyear","type":"integer"}},"example":{"_id":"61ddea901311ecaed99afb7c","email":"hello@agu.edu.tr","userGroup":"default","curSemesterID":"61ddea901311ecaed99afb7d","curUniversityID":"61ddea901311ecaed99afb7e","entranceYear":2018}},"UserModel":{"title":"UserModel","required":["email","password"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"email":{"title":"Email","type":"string","format":"email"},"password":{"title":"Password","type":"string"},"semesters":{"title":"Semesters","type":"array","items":{"$ref":"#/components/schemas/UserSemesterModel"},"default":[]}},"example":{"email":"hello@agu.edu.tr","password":"123456"}},"UserSemesterModel":{"title":"UserSemesterModel","required":["name","startDate","endDate","startHour","dLesson","dBreak","slotCount"],"type":"object","properties":{"_id":{"title":" Id","type":"string"},"name":{"title":"Name","type":"string"},"startDate":{"title":"Startdate","type":"string","format":"date-time"},"endDate":{"title":"Enddate","type":"string","format":"date-time"},"startHour":{"title":"Starthour","type":"string"},"dLesson":{"title":"Dlesson","exclusiveMinimum":0.0,"type":"integer"},"dBreak":{"title":"Dbreak","exclusiveMinimum":0.0,"type":"integer"},"slotCount":{"title":"Slotcount","exclusiveMaximum":16.0,"exclusiveMinimum":3.0,"type":"integer"},"lessons":{"title":"Lessons","type":"array","items":{"$ref":"#/components/schemas/LessonModel"},"default":[]}},"example":{"name":"2020-21 Spring","startDate":"2022-02-18T00:00:00Z","endDate":"2022-06-18T00:00:00Z","startHour":"8.10","dLesson":50,"dBreak":10,"slotCount":12}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"type":"string"}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"token"}}}}}}