- Route
/
: User logged/unauthorized see the list of courses - Route
/studyplan
: If the user is logged, he sees his StudyPlan - Route
/login
: Login Page if the user is not logged
-
GET
/api/courses
- request parameters and request body content:
none
- response body content;
200 (success)
with below body structure
[ { "code": "01UDFOV", "name": "Applicazioni Web I", "credits": 6, "maxStudents": null, "incompatibleCourse": [ "01TXYOV" ], "preparatoryCourse": null, "signedStudents": 1 }, { "code": "02GOLOV", "name": "Architetture dei sistemi di elaborazione", "credits": 12, "maxStudents": null, "incompatibleCourse": [ "02LSEOV" ], "preparatoryCourse": null, "signedStudents": 1 }... ]
- request parameters and request body content:
-
PUT
/api/courses/:code
- request parameters and request body content:
none
. Variablecode
is needed in query parameters. - response body content:
200 (success)
.
- request parameters and request body content:
-
GET
/api/studyplan/:matricola
- request parameters and request body content:
none
. Variablematricola
is needed in query parameters. - response body content:
200 (success)
with list of courses in a StudyPlan
- request parameters and request body content:
-
POST
/api/studyplan/
- request parameters and request body content:
user & new course to add
. - response body content:
201 (success)
.
- request parameters and request body content:
-
DELETE
/api/studyplan/:matricola/:code
- request parameters and request body content:
none
. Variablematricola, code
are needed in query parameters. - response body content:
204 (success)
.
- request parameters and request body content:
-
GET
/api/user/studyplan/:matricola
- request parameters and request body content:
none
. Variablematricola
is needed in query parameters. - response body content:
200 (success)
with the type of StudyPlan of the User withmatricola
:
[ { "code": "01URROV", "name": "Computational intelligence", "credits": 6, "maxStudents": null, "incompatibleCourse": null, "preparatoryCourse": null, "signedStudents": 1 }, { "code": "02LSEOV", "name": "Computer architectures", "credits": 12, "maxStudents": null, "incompatibleCourse": [ "02GOLOV" ], "preparatoryCourse": null, "signedStudents": 1 }... ]
- request parameters and request body content:
-
PUT
/api/user/studyplan/:matricola/:type
- request parameters and request body content:
none
. Variablematricola, type
are needed in query parameters:
{ "matricola": matricola, "type": type }
- response body content:
200 (success)
.
- request parameters and request body content:
-
GET
/api/sessions/current
- request parameters and request body content:
none
- response body content:
200 (success)
.
- request parameters and request body content:
-
POST
/api/sessions/
- request parameters and request body content:
user credentials
. - response body content:
201 (success)
.
- request parameters and request body content:
-
DELETE
/api/sessions/current
- request parameters and request body content:
none
. - response body content:
204 (success)
.
- request parameters and request body content:
-
Table
Courses
- contains:- code
- name
- credits
- maxStudents
- incompatible
- preparatory
- enrolledStudents
-
Table
StudyPlan
- contains:- matricola
- code
-
Table
UserStudyPlan
- contains:- matricola
- type
-
Table
Users
- contains:- matricola
- password (not in clear)
- salt
- name
LoginForm
(inLoginForm.js
): login component;NavbarCustom
(inNavbar.js
): component used for Login, Logout and to see the StudyPlan (if logged) and the list of courses;CourseView
(inCourseView.js
): component used to see list of courses (and StudyPlan if a user is logged);CourseTable
(inCourseTable.js
): component used to create the Table of courses;CourseRow
(inCourseTable.js
): component used for the description of a course and to add a course in the StudyPlan;StudyPlanTable
(inStudyPlanTable.js
): component used to see the StudyPlan of a certain user;CourseRow
(inStudyPlanTable.js
): component used for the description of a course in the StudyPlan;CourseData
(inStudyPlanTable.js
): component used for the course data and to remove a course from a StudyPlan;
- s123456@studenti.polito.it, password
- s283991@studenti.polito.it, password
- s292929@studenti.polito.it, password
- s296114@studenti.polito.it, password
- s789012@studenti.polito.it, password