Backend routes - gootieno/ClassTracker GitHub Wiki
Students
- POST /students - creates a new student
- POST /students/login - creates token to authenticate and login student
- POST /students/logout - destroys a token to logout student
- POST /students/guest - guest student login route
Instructors
- POST /instructors - creates a new instructor
- POST /instructors/login - creates token to authenticate and login instructor
- POST /instructors/logout - destroys a token to logout instructor
- POST /instructors/guest - guest user login instructor
Stats
- GET /stats/:id - returns stats by user id
- POST /stats - posting new assessment scores and adding/removing strikes
Cohort
- GET /cohort - return all active cohorts
- GET /cohort/student/:id - return cohort that a student is enrolled in
- GET /cohort/instructor/:id - return cohort that an instructor in teaching
- POST /cohort/:id - creates a new cohort taught by an instructor
Projects
- GET /projects/ - return all projects from all cohorts
- POST /projects/:id - adds completed student project
- GET /projects/:id - gets projects from a specific student
Assessments
- GET /assessments/:id - return all assessments from a class taught by instructor
- POST /assessments/:id - create an assessment for students taught by instructor