Chapters
All Chapters
GET
https://yoursite.mavenseed.com/api/v1/chapters
Retrieve all chapters.
Path Parameters
Name | Type | Description |
---|---|---|
page | integer | Results are paginated |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Show Chapter
GET
https://yoursite.mavenseed.com/api/v1/chapters/:id
Retrieve a single chapter.
Path Parameters
Name | Type | Description |
---|---|---|
string |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Create Chapter
POST
https://yoursite.mavenseed.com/api/v1/chapters
Create a chapter.
Path Parameters
Name | Type | Description |
---|---|---|
string |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Request Body
Name | Type | Description |
---|---|---|
course_id | string | |
title | string | Title of the chapter. Displayed in lesson listing. |
content | string | Chapter description. Displayed in lesson listing. |
ordinal | integer | The position of the chapter in the course. |
Update Chapter
PATCH
https://yoursite.mavenseed.com/api/v1/chapters/:id
Update a single chapter. All of the above properties in create chapter are valid.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Delete a Chapter
DELETE
https://yoursite.mavenseed.com/api/v1/chapters/:id
Delete a chapter
Path Parameters
Name | Type | Description |
---|---|---|
string |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Last updated