with empty quiz attachment
GET /v1/:school_id/current_user/courses/:course_id/lectures/:id
Parameters
| Name |
Description |
|
school_id
|
school_id
|
|
course_id
|
course_id
|
|
id
|
id
|
Request
Headers
Route
GET /v1/130/current_user/courses/80/lectures/19
Query Parameters
{}:
cURL
curl "http://localhost:3000/v1/130/current_user/courses/80/lectures/19" -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Client-Token: mobile" \
-H "Sso-Token: vt_fC3gEF1W-jvv9pA6h" \
-H "Host: api.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"lecture": {
"id": 19,
"name": "Lecture Name 18",
"is_published": true,
"position": 1,
"school_id": 130,
"course_id": 80,
"lecture_section_id": 96,
"created_at": "2019-10-31T22:00:30Z",
"updated_at": "2019-10-31T22:00:30Z",
"drip_content": null,
"attachments": [
{
"id": 17,
"name": "",
"host": null,
"host_id": null,
"kind": "quiz",
"downloadable": false,
"url": null,
"text": null,
"duration": 0,
"attachable_type": "Lecture",
"attachable_id": 19,
"is_published": true,
"position": null,
"thumbnail_url": null,
"large_thumbnail_url": null,
"created_at": "2019-10-31T22:00:30Z",
"updated_at": "2019-10-31T22:00:30Z",
"file_size": 0,
"file_extension": "",
"quiz": {
"id": 1,
"type": "Quiz",
"school_id": 130,
"topic_id": 17,
"topic_type": "Attachment",
"created_at": "2019-10-31T22:00:30Z",
"updated_at": "2019-10-31T22:00:30Z",
"questions": [
],
"graded": false
},
"captions": [
],
"comments": [
]
}
],
"primary_attachment": {
"id": 17,
"name": null,
"thumbnail_url": null,
"kind": "quiz",
"file_extension": null,
"headline": "File"
}
}
}