Returns the lessons of a course in display order, optionally narrowed to one section.
Pass topic_id to restrict the list to a single section. The response is not paginated.
Endpoint
Method:
GETPath:
/admin/courses/{course_id}/lessonsEdition: Core
Controller:
CourseAdminController@getLessonsRoute source:
fluent-community/Modules/Course/Http/course_api.php:52Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseAdminController.phpRequires the course-creator permission and management access to this course.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
GET List Course Lessons
Returns the lessons of a course in display order, optionally narrowed to one section.
Controller: CourseAdminController@getLessons
Route source: fluent-community/Modules/Course/Http/course_api.php:52
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Query Parameters
Topic ID read via $request->get() in getLessons().
Responses
Successful response