for owner, author, and affiliate
GET /api/v1/courses/:course_id/lecture_sections/:id
Parameters
| Name |
Description |
|
course_id
|
couse id
|
|
id
|
id
|
|
name
|
Lecture section Name
|
|
is_published
|
publically viewable?
|
Request
Headers
Route
GET /api/v1/courses/44/lecture_sections/45?name=foo&is_published=true
Query Parameters
name: foo
is_published: true
cURL
curl "http://localhost:3000/api/v1/courses/44/lecture_sections/45?name=foo&is_published=true" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: xfsQWxX9sXFBn9DUDwQPsT-96e4h5rCPww" \
-H "X-Api-Email: user-126@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T21:59:22Z",
"name": "First Section",
"course_id": 44,
"position": 1,
"is_published": true,
"drip_content_id": null,
"id": 45,
"meta": {
"class": "lecturesection",
"url": "/courses/44/lecture_sections/45",
"name": "First Section",
"description": "",
"image_url": null
},
"lectures": [
],
"drip_content": null
}
Request
Headers
Route
GET /api/v1/courses/44/lecture_sections/45?name=foo&is_published=true
Query Parameters
name: foo
is_published: true
cURL
curl "http://localhost:3000/api/v1/courses/44/lecture_sections/45?name=foo&is_published=true" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: xfsQWxX9sXFBn9DUDwQPsT-96e4h5rCPww" \
-H "X-Api-Email: user-126@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T21:59:22Z",
"name": "First Section",
"course_id": 44,
"position": 1,
"is_published": true,
"drip_content_id": null,
"id": 45,
"meta": {
"class": "lecturesection",
"url": "/courses/44/lecture_sections/45",
"name": "First Section",
"description": "",
"image_url": null
},
"lectures": [
],
"drip_content": null
}
Request
Headers
Route
GET /api/v1/courses/44/lecture_sections/45?name=foo&is_published=true
Query Parameters
name: foo
is_published: true
cURL
curl "http://localhost:3000/api/v1/courses/44/lecture_sections/45?name=foo&is_published=true" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: xfsQWxX9sXFBn9DUDwQPsT-96e4h5rCPww" \
-H "X-Api-Email: user-126@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T21:59:22Z",
"name": "First Section",
"course_id": 44,
"position": 1,
"is_published": true,
"drip_content_id": null,
"id": 45,
"meta": {
"class": "lecturesection",
"url": "/courses/44/lecture_sections/45",
"name": "First Section",
"description": "",
"image_url": null
},
"lectures": [
],
"drip_content": null
}