Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **Changes to models
- - Classroom model
- String classroomId;
- String classroomName;
- String classroomDescription;
- String classroomYear;
- String classroomImagePath;
- String classroomCode; (the code to add a child/teacher to classroom)
- - Teacher model
- Note: you are free to name the attributes the way you see fit
- **Requests to be added
- GET: classroom/{id}/teachers
- // the teacher who is the admin of the class needs to have an attribute "is_admin"
- GET: classroom/{id}/children
- POST: classroom/{id}/add-child/{child_id}
- GET: teachers/{id}/classrooms
- GET: teachers/{id}/classroom/{id}
- 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