Individual Lecture API

for owner, student, author, and affiliate

GET /api/v1/courses/:course_id/lectures/:id

Parameters

Name Description
id id
course_id course id
name Lecture section Name
is_published publically viewable?
attachments_attributes attachments attributes
id id

Request

Headers

Accept: application/json
X-Api-Token: DDnveE4VxnBrDk8EB5UgJfmYBkpVRJgzzA
X-Api-Email: user-598@example.com

Route

GET /api/v1/courses/262/lectures/71

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/courses/262/lectures/71" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: DDnveE4VxnBrDk8EB5UgJfmYBkpVRJgzzA" \
	-H "X-Api-Email: user-598@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "created_at": "2019-10-31T22:06:00Z",
  "name": "Lecture Name 21",
  "download": false,
  "free_preview": false,
  "description": "Lecture Description",
  "course_id": 262,
  "position": 1,
  "is_published": true,
  "lecture_section_id": 318,
  "id": 71,
  "meta": {
    "class": "lecture",
    "url": "/courses/262/lectures/71",
    "name": "Lecture Name 21",
    "description": "Lecture Description",
    "image_url": null
  }
}

Request

Headers

Accept: application/json
X-Api-Token: DDnveE4VxnBrDk8EB5UgJfmYBkpVRJgzzA
X-Api-Email: user-598@example.com

Route

GET /api/v1/courses/262/lectures/71

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/courses/262/lectures/71" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: DDnveE4VxnBrDk8EB5UgJfmYBkpVRJgzzA" \
	-H "X-Api-Email: user-598@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "created_at": "2019-10-31T22:06:00Z",
  "name": "Lecture Name 21",
  "download": false,
  "free_preview": false,
  "description": "Lecture Description",
  "course_id": 262,
  "position": 1,
  "is_published": true,
  "lecture_section_id": 318,
  "id": 71,
  "meta": {
    "class": "lecture",
    "url": "/courses/262/lectures/71",
    "name": "Lecture Name 21",
    "description": "Lecture Description",
    "image_url": null
  }
}

Request

Headers

Accept: application/json
X-Api-Token: DDnveE4VxnBrDk8EB5UgJfmYBkpVRJgzzA
X-Api-Email: user-598@example.com

Route

GET /api/v1/courses/262/lectures/71

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/courses/262/lectures/71" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: DDnveE4VxnBrDk8EB5UgJfmYBkpVRJgzzA" \
	-H "X-Api-Email: user-598@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "created_at": "2019-10-31T22:06:00Z",
  "name": "Lecture Name 21",
  "download": false,
  "free_preview": false,
  "description": "Lecture Description",
  "course_id": 262,
  "position": 1,
  "is_published": true,
  "lecture_section_id": 318,
  "id": 71,
  "meta": {
    "class": "lecture",
    "url": "/courses/262/lectures/71",
    "name": "Lecture Name 21",
    "description": "Lecture Description",
    "image_url": null
  }
}

Request

Headers

Accept: application/json
X-Api-Token: DDnveE4VxnBrDk8EB5UgJfmYBkpVRJgzzA
X-Api-Email: user-598@example.com

Route

GET /api/v1/courses/262/lectures/71

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/courses/262/lectures/71" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: DDnveE4VxnBrDk8EB5UgJfmYBkpVRJgzzA" \
	-H "X-Api-Email: user-598@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "created_at": "2019-10-31T22:06:00Z",
  "name": "Lecture Name 21",
  "download": false,
  "free_preview": false,
  "description": "Lecture Description",
  "course_id": 262,
  "position": 1,
  "is_published": true,
  "lecture_section_id": 318,
  "id": 71,
  "meta": {
    "class": "lecture",
    "url": "/courses/262/lectures/71",
    "name": "Lecture Name 21",
    "description": "Lecture Description",
    "image_url": null
  }
}