- Without any authorization
-
Show All Users :
GET /api/users/
Request Body { "emails": [ "[email protected]" ] }
-
Show Teachers :
GET /api/teachers/
Request Body { "name": "Teacher1", "email": "[email protected]", "password": "123123123" }
-
Login User :
POST /api/user/login/
Request Body { "email":"[email protected]", "password":"xxxxxxxx" }
-
- Authorizaed By Admin
-
Register Admin :
POST /api/users/
Request Body { "name": "Admin1", "email": "[email protected]", "password": "123123123", "role": "admin" }
-
Register Teachers :
POST /api/users/
Request Body { "name": "Techer1", "email": "[email protected]", "password": "123123123", "role": "teacher", "profile": { "designation": "Professor" } }
-
Register Student :
POST /api/users/
Request Body { "name": "Student1", "email": "[email protected]", "password": "123123123", "role": "student", "profile": { "sessionId": 1, "registration": 2017831020 } }
-
-
Authorized And Performed By User Himself
- Get Profile :
GET /api/users/me
- Logout User :
POST /api/users/logout
- Get Profile :
- With Admin Authorization
-
Create Session:
POST /api/sessions
Request Body { "session" : "2018-19" }
-
- With Users Authorization
- Get Session:
GET /api/sessions
- Get Session:
-
With Admin Authorization
-
Create Course :
POST /api/courses
Request Body { "title": "Introduction to software engineering", "credit": 3, "is_optional": false, "semester": "3/2", "details": "Very important course", "adminId": 1 }
-
-
With Users Authorization
- Get Courses :
GET /api/courses
- New Request :
GET /api
- Get Courses :
-
With Teacher Authorization
-
Create Classroom :
POST /api/classrooms
Request Body { "courseId": 2, "sessionId": 1, "extra_students_id": [] }
-
Update Classroom :
Patch /api/classrooms//32
Request Body { "courseId": 5 }
-
Add Students To Classroom :
Patch /api/classrooms//38/addStudents
Request Body { "students": [ 12,13, 14, 15 ] }
-
Remove Students From Classroom :
Patch /api/classrooms//38/removeStudents
Request Body { "students": [ 12, 13 ] }
-
-
With Users Authorization
- Get Classrooms :
GET /api/classrooms
- Get Single Classroom :
GET /api/classrooms/2
- Get Classrooms :
- With Teacher Authorization
-
Create Classwork :
POST /api/classrooms/2/classworks
Request Body { "details": "Class Work on Data Visualization", "total_marks": 100, "deadlineDate": "10/12/2020", "task_type": "term_test" }
-
- With Users Authorization
- Submit Classwork :
POST /api/classrooms/2/classworks/1/submission
- Submit Classwork :
- With Teacher Authorization
- Create Post :
POST /api/classrooms/2/posts
- Create Post :
- With User Authorization
-
Get Posts for Classroom:
GET /api/classrooms/2/posts
Request Body { "content": "This is demo content" }
-
Create Comment On Post :
POST /api/classrooms/2/posts/1/comments
Request Body { "content": "This is a comment demo" }
-
Get Post Commnets :
GET /api/classrooms/2/posts/1/comments
-