The Repository is built to complete one of Information Technology Departmant for Electronic Mobile Learning Course
git clone https://github.com/rizalilhamm/elearning.git
Before you run bellow intructions make sure you have made your virtual Enviroment and activeted
pip install -r requirements.txt
export FLASK_APP=elearning
flask run
The REST API Electronic Mobile Learning Described below. You can test it using Postman
127.0.0.1:5000/account/register
127.0.0.1:5000/account/login
127.0.0.1:5000/account/logout
-
Register with institution email
Lecturer ([email protected]) (lecture after @)
Student ([email protected]) (student after @)
-
Login with registered email
-
Logout from system
127.0.0.1:5000/classes
127.0.0.1:5000/classes/<int:id>
- Get all classes or particular class
- Create new Class
- Update a particular classname
- Add new student to a particular class
- Get all classes or particular class
127.0.0.1:5000/classes/<int:id>/tasks
127.0.0.1:5000/classes/<int:id>/tasks/<int:index>
- Get all tasks or a particular task
- Create new task
- Update a particular task title
- Get all tasks or particular task
- Post Task Response (cancel not allowed after submit)
127.0.0.1:5000/classes/<int:id>/new_materials
- Post new material for a particular class
127.0.0.1:5000/classes/<int:id>/participants/<int:index>
- Get all participants or a particular
- Add new Participants
- Get all participants
http://127.0.0.1:5000/classes/1/tasks/1/answers
http://127.0.0.1:5000/classes/1/tasks/1/answers/<int:index>
- Get all answers or particular answer
- Check a particular score and appraisal it
- Ability to update the appraisal
Class commments
http://127.0.0.1:5000/classes/1/comments
Task comments
http://127.0.0.1:5000/classes/1/tasks/1/comments
- Ability to post a comment
- Ability to get all comment
- Ability to post a comment
- Ability to get all comment