Completion

API endpoints for getting completion data

Get all completion

List all completions

GET https://your-platform-url.com/api/so2/v1/completion

Get all course user completion for your instance

Headers

Name
Type
Description

Access-Control-Request-Headers*

string

authorization

Authorization*

string

Bearer <auth_token>

Content-Type*

string

application/json

{"username":"johndoe",
"email":"john@example.com",
"course_id":"course-v1:MOOCit-demo-1",
"completion":"0.80"
}, 
{"username":"JaneDoe",
"email":"jane@example.com",
"course_id":"course-v1:MOOCit-demo-2",
"completion":"0.5"
}
...

Get completion by course

List completion by course

GET https://your-platform-url.com/api/so2/v1/completion?course_id={course_id}

Get course user completion for a given course

Query Parameters

Name
Type
Description

course_id

string

the course_id course-v1:org+num+session

Headers

Name
Type
Description

Access-Control-Request-Headers*

string

authorization

Authorization*

string

Bearer <auth_token>

Content-Type*

string

application/json

{"username":"johndoe",
"email":"john@example.com",
"course_id":"course-v1:MOOCit-demo-1",
"completion":"0.80"
}, 
{"username":"JaneDoe",
"email":"jane@example.com",
"course_id":"course-v1:MOOCit-demo-1",
"completion":"0.45"
}
...

Get completion by username

List completion by username

GET https://your-platform-url.com/api/so2/v1/completion?username={username}

Get course completion for a given username

Query Parameters

Name
Type
Description

username

string

Headers

Name
Type
Description

Access-Control-Request-Headers*

string

authorization

Authorization*

string

Bearer <auth_token>

Content-Type*

string

application/json

{"username": "johndoe",
"email":"john@example.com",
"course_id":"course-v1:MOOCit-demo-1",
"completion":"0.80"
}, 
{"username": "johndoe",
"email":"john@example.com",
"course_id":"course-v1:MOOCit-demo-2",
"completion":"0.50"
}
...

Dernière mise à jour