for owner
GET /api/v1/courses/:course_id/lecture_sections
Parameters
| Name |
Description |
|
course_id
|
couse id
|
|
id
|
id
|
|
name
|
Lecture section Name
|
|
is_published
|
publically viewable?
|
Request
Headers
Route
GET /api/v1/courses/46/lecture_sections?id=47&name=foo&is_published=true
Query Parameters
id: 47
name: foo
is_published: true
cURL
curl "http://localhost:3000/api/v1/courses/46/lecture_sections?id=47&name=foo&is_published=true" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: yjEJxRM-ksyscUwmU7VTyRePWFiw_k_5qw" \
-H "X-Api-Email: user-130@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"lecture_sections": [
{
"created_at": "2019-10-31T21:59:24Z",
"name": "First Section",
"course_id": 46,
"position": 1,
"is_published": true,
"drip_content_id": null,
"id": 47,
"meta": {
"class": "lecturesection",
"url": "/courses/46/lecture_sections/47",
"name": "First Section",
"description": "",
"image_url": null
},
"lectures": [
],
"drip_content": null
}
],
"meta": {
"total": 1,
"page": 1,
"from": 1,
"to": 1,
"per": 25,
"number_of_pages": 1,
"query": {
"course_id": "46"
}
}
}