Returns a course's reviews, its rating summary, and what the caller may do with them.
What comes back depends on how much the caller may see. A member of the course, a course admin, or anyone on a public course gets the full list; someone outside a private course gets the summary alone, with an empty list and can_view_list false, which is what the lock screen draws. Only approved reviews are listed.
Endpoint
Method:
GETPath:
/courses/{course_id}/reviewsEdition: PRO
Controller:
FluentCommunityPro\App\Modules\CourseReview\Http\Controllers\CourseReviewController@getReviewsRoute source:
fluent-community-pro/app/Modules/CourseReview/Http/course_review_api.php:8my_reviewis returned without a status filter, so the author sees their own review even while it is held for moderation and even when the list itself is hidden. Read itsstatusrather than assuming it is live.A course with reviews switched off answers 404, exactly like a course the caller may not see — the two are deliberately indistinguishable.
The
ratingfilter is ignored on a course that hides its breakdown, andsortonly understandshighestandlowest; anything else keeps newest first.Reading is open to a guest when the community's access level is public.
Inferred sample
No recorded sample exists for this endpoint yet, so the payload below is inferred from the controller and model definitions. Field names and types are accurate; values are placeholders.
GET List Course Reviews
Returns a course's reviews, its rating summary, and what the caller may do with them.
Controller: FluentCommunityPro\App\Modules\CourseReview\Http\Controllers\CourseReviewController@getReviews
Route source: fluent-community-pro/app/Modules/CourseReview/Http/course_review_api.php:8
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Responses
Successful response