Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Endpoint url: http://api.moringa.org
- Methods:
- GET /modules/live_modules
- - Response: The "results" array contains module information as described below:
- { "results": [
- {
- "id": 1,
- "name": "Intro",
- "start_date": "17/10/2019",
- "end_date": "17/11/2019",
- "students": [1, 14, 35, 23]
- }, {
- "id": 1,
- "name": "Data Science Core",
- "start_date": "15/09/2019",
- "end_date": "15/12/2020",
- "students": [1, 14, 50, 2, 25, 12]
- }
- ]
- }
- - "id" is the integer id of the module.
- - "name" is a String containing the name of the module.
- - "start_date" is a String indicating the day the module started
- - "end_date" is String indicating the day the module ends.
- - "students" is a List of integer ids for the students currently enrolled in the module.
- GET /progression/{module_id}/{student_id}
- - Response example:
- {
- "progress": 55,
- "probation": True
- }
- - "progress" is a float which indicates how far the student has gotten in the module. The expectation is that the student should have at least 45% progression by the halfway mark of the module.
- - "probation" is a boolean which indicates if a student is on probation or not.
- A student not on probation will be put on probation if they fail a module.
- A student on probation will be expelled if they fail a module.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement