enrolled and published
GET /v1/:school_id/current_user/courses/:id/enrollment
Parameters
| Name |
Description |
|
school_id
|
school_id
|
|
id
|
id
|
Request
Headers
Route
GET /v1/608/current_user/courses/332/enrollment
Query Parameters
{}:
cURL
curl "http://localhost:3000/v1/608/current_user/courses/332/enrollment" -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Client-Token: mobile" \
-H "Sso-Token: Ls5dhDzpsse7cCRM2bdx" \
-H "Host: api.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"enrollment": {
"id": 64,
"course_id": 332,
"user_id": 1247,
"created_at": "2019-10-31T22:08:45Z",
"updated_at": "2019-10-31T22:08:45Z",
"enrolled_at": "2019-10-31T22:08:45Z",
"is_active": true,
"has_full_access": false,
"percent_complete": 0,
"completed_at": null,
"completed_lecture_ids": [
95
],
"responses": [
]
}
}