Returns the sections of a course in display order, with their lessons attached.
Pass conditions[]=only_published to restrict both sections and lessons to published records. Pass with_lock_screen to receive the course lock screen settings in the same response.
Endpoint
Method:
GETPath:
/admin/courses/{course_id}/sectionsEdition: Core
Controller:
CourseAdminController@getSectionsRoute source:
fluent-community/Modules/Course/Http/course_api.php:43Controller 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 Sections
Returns the sections of a course in display order, with their lessons attached.
Controller: CourseAdminController@getSections
Route source: fluent-community/Modules/Course/Http/course_api.php:43
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Query Parameters
Conditions read via $request->get() in getSections().
With Lock Screen read via $request->get() in getSections().
Responses
Successful response