commmited the completed commit api that will commit the ltp hours and commit the teacher to the subject they've chosen to commit to by commiting them to the committed subject #7
available_subject_workload: the new available subject hours after committing the current request
allotment: the complete allotment document for the current subject
when error: (identified by 400 bad request status code)
error: true
error_desc: can be string or an object, upto you, who will use this API, to figure when do you get what :)
one of these commits may also contain docker files which have partially dockerised the app (i was using this as a devcontainer, so i dont have to install node/npm on my machine (: )
api path:
/api/general/commit_ltp
input:
teacher_id
: id of the teachersubject_id
: the subject code/idlecture_hours
: number between0 <= x <= 11
tutorial_hours
: number between0 <= x <= 14
practical_hours
: number between0 <= x <= 14
output
is_feasible
: booleanavailable_subject_workload
: the new available subject hours after committing the current requestallotment
: the complete allotment document for the current subjecterror
: trueerror_desc
: can be string or an object, upto you, who will use this API, to figure when do you get what :)one of these commits may also contain docker files which have partially dockerised the app (i was using this as a devcontainer, so i dont have to install node/npm on my machine (: )
closes #2