This module contains the controllers for handling course content,
Methods
# static enrollUser(id) → {Promise.<object>}
Enroll user to a course
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
user id |
response data
Promise.<object>
# static exerciseScore(payload, id) → {Promise.<object>}
Post quiz exercise submission
Parameters:
Name | Type | Description |
---|---|---|
payload |
object
|
submission data |
id |
string
|
course ID |
response data
Promise.<object>
# static getCertificate(id) → {Promise.<object>}
handle signup api call and update current token
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
course id |
response data
Promise.<object>
# static getCourse(id) → {Promise.<object>}
Get Individual Course
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
course id |
response data
Promise.<object>
# static updateExercise(id, payload) → {Promise.<object>}
Update the exercise data
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
exercise ID |
payload |
object
|
request data |
response data
Promise.<object>