Lessons
All Lessons
GET
https://yoursite.mavenseed.com/api/v1/lessons
Retrieve all lessons
Path Parameters
page
integer
Results are paginated.
Headers
Authorization
string
Auth token
Show Lesson
GET
https://yoursite.mavenseed.com/api/v1/lessons/:id
Retrieve a single lesson
Headers
Authorization
string
Auth token
Create Lesson
POST
https://yoursite.mavenseed.com/api/v1/lessons
Create a lesson. Note: slugs are created automatically from the title, but can updated with the PATCH call below.
Headers
Authorization
string
Auth Token
Request Body
lessonable_id
integer
ID of the type of lesson below
lessonable_type
string
Chapter
title
string
Title of the lesson
content
string
Lesson content
status
integer
0 - draft, 1 - published
ordinal
integer
Order in course
exercise_votes_thresold
integer
NUmber of votes
exercise_type
string
free
string
media_type
string
Update Lesson
PATCH
https://yoursite.mavenseed.com/api/v1/lessons/:id
Update a single lesson. All of the above properties in create lesson are valid.
Headers
Authorization
string
Auth token
Delete a Lesson
DELETE
https://yoursite.mavenseed.com/api/v1/lessons/:id
Delete a lesson.
Headers
Authorization
string
Auth toke
Last updated