Module

Courses

This module contains the controllers for handling course content,

View Source client/src/utils/api/courses.ts, line 3

Methods

# static enrollUser(id) → {Promise.<object>}

Enroll user to a course

Parameters:
Name Type Description
id string

user id

View Source client/src/utils/api/courses.ts, line 31

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

View Source client/src/utils/api/courses.ts, line 51

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

View Source client/src/utils/api/courses.ts, line 60

response data

Promise.<object>

# static getCourse(id) → {Promise.<object>}

Get Individual Course

Parameters:
Name Type Description
id string

course id

View Source client/src/utils/api/courses.ts, line 22

response data

Promise.<object>

# static getCourses() → {Promise.<object>}

Get all Available Courses

View Source client/src/utils/api/courses.ts, line 13

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

View Source client/src/utils/api/courses.ts, line 41

response data

Promise.<object>