- Route
/
: Unauthenticated Homepage.- Shows the complete available course list.
- Route
/edit
: Editing Route- Once authenticated, the user will be redirected to this route to create/edit study plan.
-
/api/courses/
- Request: None
- Respond:
- body: complete available course list.
-
/api/course/:code
- Request:
- params:
- code: the code of requesting course
- params:
- Respond:
- body:
- the course described by the code
- body:
- Request:
-
/api/studyPlans/:matricola
- Request:
- params:
- matricola: the student number(with initial s) of the requesting student
- params:
- Respond:
- body:
- the list of selected courses belonging to the student
- body:
- Request:
-
/api/sessions/current
- Request: None
- Respond:
- If authenticated, the current session maintained by express-session.js
- If failed, an error message
-
/api/studyPlans/:matricola
- Request:
- params:
- matricola: the student number(with initial s) of the requesting student
- body:
- The object with the study plan and the boolean value indicating the list being full time or not
- params:
- Respond:
- body:
- the list of selected courses belonging to the student
- body:
- Request:
-
/api/sessions/current
- Request:
- Credentials: the user's information for authentication
- Respond:
- If authenticated, an user session
- If failed, an error message
- Request:
-
/api/studyPlans/:matricola
- Update the study plan (including "deleting")
- Request:
- params:
- matricola: the student number(with initial s) of the requesting student
- body:
- The object with the study plan and the boolean value indicating the list being full time or not
- params:
- Respond:
- body:
- If updating successfully, a status 201 without any message
- If not found, a status 404
- If failed, a 503 with a json message of the reason
- body:
-
/api/courses/book/:code
- Booking a course
- Request:
- params:
- code: The course code of the requesting course
- params:
- Respond:
- If successful, status 200 without message
- If failed
- Status 404 for no courses found
- Status 503 for general errors
-
/api/courses/unBook/:code
- Un-booking a course
- Request:
- params:
- code: The course code of the requesting course
- params:
- Respond:
- If successful, status 200 without message
- If failed
- Status 404 for no courses found
- Status 503 for general errors
-
/api/studyPlans/:matricola
- Request:
- params:
- matricola: the student number(with initial s) of the requesting student
- params:
- Respond:
- Status 204 on success
- Status 404 on entries not found
- Status 500 otherwise
- Request:
-
/api/sessions/current
-
Remove current session of user(log out)
- Request: None
- Respond: None
- Table
Courses
- contains all the necessary information about any course available - Table
Study_Plans
- contains all defined/undefined study plans (assuming pre-defined along with the user) - Table
Users
- containing all the user information
/
├── AuthNavBar: The navigator bar that provides login/logout functionalities.
├── AvailableCoursesList: The list for all available courses to be selected
│ ├── ListRow: The static row that display basic information for courses
│ └── ListRowStatus: The interactive row that displays additional information
└── /edit
└── SelectedCoursesList: The list for user-selected courses
├── CreateNewStudyPlanRow: Providing options about Full time when creating
├── ListCredits: The row that displays current credits
├── ListActions: Providing table functions for the list, like save or delete
└── ListContent: The row that displays information of selected course
- s100000, password
- s300000, password
- s500000, password
- s200000, password
- s400000, password