should return 200
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
|
Request
Headers
Route
GET /api/v1/courses/255/lectures/65
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/courses/255/lectures/65" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: QpZyo3gVvuynZTuHLBZUpK4ovMeuLTznCw" \
-H "X-Api-Email: user-584@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:05:51Z",
"name": "Lecture Name 15",
"download": false,
"free_preview": false,
"description": "Lecture Description",
"course_id": 255,
"position": 1,
"is_published": false,
"lecture_section_id": 305,
"id": 65,
"meta": {
"class": "lecture",
"url": "/courses/255/lectures/65",
"name": "Lecture Name 15",
"description": "Lecture Description",
"image_url": null
}
}