for getting a student by their Id student/get-student{id} the Response object will now be a PrivateStudentDTO.
for getting all assignments by student id student/get-all{id} and add new assignment /add will be a list of Assignments.
for getting all students teacher/all and add student teacher/add the response will be a TeacherStudentList.
for getting a student /unique{studentName} and edit student teacher/edit the response will be PublicStudentDTO
Request body changes
Any Assignment request will now require an int period visit Assignment request for more information.
For AddStudent add a String subject value. EditStudent add an int period value. DeleteStudent now needs a request body containing the int period and Long studentId. visit Student Request for more information.
Problem
In a future update in [Grader API]() The following changes will be made.
You can view the full description in the Grader API issues tab.
For now, the UI should update its response and request logic to incorporate the new changes.
new request endpoints
Note: student login uses the same teacher login request body format.
Teacher login request and response bodies are the same.
Student Login Response information
Assignments
All Assignment Request bodies should now contain an Integer period value in them.
AddStudentRequest Should now contain the teacher's subject
Students
EditStudentRequest body should now contain an Integer period value in them.
Getting all students endpoint /teacher/all will return students in this format:
Changes made to endpoint bodies (requests/responses)
New response bodies.
Sample PrivateStudentDTO
PublicStudentDTO
TeacherStudentList
Note the
integer_key
being the period number.student/get-student{id}
the Response object will now be a PrivateStudentDTO.student/get-all{id}
and add new assignment/add
will be a list ofAssignments
.teacher/all
and add studentteacher/add
the response will be a TeacherStudentList./unique{studentName}
and edit studentteacher/edit
the response will be PublicStudentDTORequest body changes
Any Assignment request will now require an
int period
visit Assignment request for more information.For AddStudent add a
String subject
value. EditStudent add anint period
value. DeleteStudent now needs a request body containing theint period
andLong studentId
. visit Student Request for more information.