This feature allows students and teachers to associate with each other, which allows students to get their works reviewed by the teachers they have at school, and teachers to monitor their students' works.
The serverless function:
[ ] receives the request initiator's and receiver's ID
[ ] validates the request
[ ] ensures the validity of both user IDs
[ ] ensures that the request is done either from a student to a teacher or from a teacher to a student
[ ] create an association request with a pending state
[ ] the teacher/student who received the request can then accept or reject it from their client
This feature allows students and teachers to associate with each other, which allows students to get their works reviewed by the teachers they have at school, and teachers to monitor their students' works.
The serverless function: