Current User Lectures API

enrolled and published

GET /v1/:school_id/current_user/courses/:course_id/lectures/:id/continue

Parameters

Name Description
school_id school_id
course_id course_id
id id

Request

Headers

Accept: application/json

Route

GET /v1/136/current_user/courses/86/lectures/25/continue

Query Parameters

{}: 

cURL

curl "http://localhost:3000/v1/136/current_user/courses/86/lectures/25/continue" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Client-Token: mobile" \
	-H "Sso-Token: Hzz1j7cQ9jx1zEdMs9tg" \
	-H "Host: api.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 310

Status

200 OK

Body

{
  "enrollment": {
    "id": 12,
    "course_id": 86,
    "user_id": 269,
    "created_at": "2019-10-31T22:00:33Z",
    "updated_at": "2019-10-31T22:00:33Z",
    "enrolled_at": "2019-10-31T22:00:33Z",
    "is_active": true,
    "has_full_access": false,
    "percent_complete": 50,
    "completed_at": null,
    "completed_lecture_ids": [
      25
    ],
    "responses": [

    ]
  },
  "next_lecture_id": 26
}