This is the documentation for the Authentication Service component of the University Management System. The Authentication Service provides authentication and authorization functionalities for the three main roles in the system: Admin, Student, and Faculty. It is built using TypeScript, Express.js, Zod validation, and MongoDB.
- Student can login and log out.
- Student can manage and update their profile.
- Student can update certain fields.
- Admin can log in and log out.
- Admin can manage and update their profile.
- Admin can only update certain fields.
- Admin can manage user accounts:
- Change Password
- Faculty can log in and log out.
- Faculty can manage and update their profile.
- Faculty can only update certain fields.
POST /users/create-studentPOST /users/create-facultyPOST /users/create-admin
GET /studentsGET /students?searchTerm=fr797GET /students?page=1&limit=10&sortBy=gender&sortOrder=ascGET /students/:idPATCH /students/:idDELETE /students/:id
GET /facultiesGET /faculties?searchTerm=johnGET /faculties?page=1&limit=10&sortBy=gender&sortOrder=ascGET /faculties/:idPATCH /faculties/:idDELETE /faculties/:id
GET /adminsGET /admins?searchTerm=us88GET /admins?page=1&limit=10&sortBy=gender&sortOrder=ascGET /admins/:idPATCH /admins/:idDELETE /admins/:id
POST /academic-semesters/create-semesterGET /academic-semestersGET /academic-semesters?searchTerm=falGET /academic-semesters?page=1&limit=10&sortBy=year&sortOrder=ascGET /academic-semesters/:idPATCH /academic-semesters/:idDELETE /academic-semesters/:id
POST /academic-departments/create-departmentGET /academic-departmentsGET /academic-departments?searchTerm=mathGET /academic-departments?page=1&limit=10&sortBy=title&sortOrder=ascGET /academic-departments/:idPATCH /academic-departments/:idDELETE /academic-departments/:id
POST /academic-faculties/create-facultyGET /academic-facultiesGET /academic-faculties?searchTerm=comGET /academic-faculties?page=1&limit=10&sortBy=title&sortOrder=ascGET /academic-faculties/:idPATCH /academic-faculties/:idDELETE /academic-faculties/:id
POST /auth/loginPOST /auth/change-passwordPOST /auth/refresh-token
Postman Documenttaion: Click Here