Advertisement
Alatri_Aymen

Untitled

Sep 8th, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. **Changes to models
  2. - Classroom model
  3. String classroomId;
  4. String classroomName;
  5. String classroomDescription;
  6. String classroomYear;
  7. String classroomImagePath;
  8. String classroomCode; (the code to add a child/teacher to classroom)
  9.  
  10. - Teacher model
  11.  
  12.  
  13. Note: you are free to name the attributes the way you see fit
  14.  
  15. **Requests to be added
  16. GET: classroom/{id}/teachers
  17. // the teacher who is the admin of the class needs to have an attribute "is_admin"
  18. GET: classroom/{id}/children
  19. POST: classroom/{id}/add-child/{child_id}
  20. GET: teachers/{id}/classrooms
  21. GET: teachers/{id}/classroom/{id}
  22.  
  23. Note: Can we please go further with added authentication and registration processes (using signup/signin forms) with no sms or email verification.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement