@@ -196,6 +196,7 @@ def _is_minimal_view_requested(request) -> bool:
196196# EnrollmentViewSet — consolidates list / create / unenroll / allowed
197197# ===========================================================================
198198@can_disable_rate_limit
199+ @extend_schema (tags = ["openedx-platform-sdk" ])
199200class EnrollmentViewSet (StandardizedErrorMixin , viewsets .ViewSet , ApiKeyPermissionMixIn ):
200201 """
201202 Canonical ViewSet for the v2 Enrollment API.
@@ -423,6 +424,7 @@ def allowed(self, request):
423424# ===========================================================================
424425# Kept as a standalone APIView because the {username},{course_id} URL form
425426# (comma-separated, both optional) is not expressible via DefaultRouter.
427+ @extend_schema (tags = ["openedx-platform-sdk" ])
426428class EnrollmentRetrieveView (StandardizedErrorMixin , ApiKeyPermissionMixIn , APIView ):
427429 """GET enrollment for a course (and optionally a named user)."""
428430
@@ -501,6 +503,7 @@ def get(self, request, course_id=None, username=None):
501503# ===========================================================================
502504# UserRolesView — GET /roles/ (singleton list endpoint for the current user)
503505# ===========================================================================
506+ @extend_schema (tags = ["openedx-platform-sdk" ])
504507class UserRolesView (StandardizedErrorMixin , APIView ):
505508 """List the current user's course-level roles."""
506509
@@ -574,6 +577,7 @@ def get(self, request):
574577# ===========================================================================
575578# CourseEnrollmentDetailView — GET /course/{course_id} (public, no auth)
576579# ===========================================================================
580+ @extend_schema (tags = ["openedx-platform-sdk" ])
577581class CourseEnrollmentDetailView (StandardizedErrorMixin , APIView ):
578582 """Get enrollment information about a particular course."""
579583
@@ -624,6 +628,7 @@ def get(self, request, course_id=None):
624628# EnrollmentsAdminListView — GET /enrollments/ (admin paginated list)
625629# ===========================================================================
626630@extend_schema (
631+ tags = ["openedx-platform-sdk" ],
627632 summary = "List all course enrollments (admin-only, paginated)" ,
628633 description = (
629634 "Admin-only paginated list of CourseEnrollment records, optionally filtered by "
0 commit comments