Add API documentation with django-rest-swagger.

This commit is contained in:
Douglas Hall
2018-05-04 14:24:03 -04:00
committed by Douglas Hall
parent ab43de112b
commit c6ec5edbf7
13 changed files with 66 additions and 1 deletions

View File

@@ -46,6 +46,10 @@ class EnrollmentSupportListView(GenericAPIView):
Allows viewing and changing learner enrollments by support
staff.
"""
# TODO: ARCH-91
# This view is excluded from Swagger doc generation because it
# does not specify a serializer class.
exclude_from_schema = True
@method_decorator(require_support_permission)
def get(self, request, username_or_email):

View File

@@ -37,6 +37,10 @@ class ManageUserDetailView(GenericAPIView):
Allows viewing and disabling learner accounts by support
staff.
"""
# TODO: ARCH-91
# This view is excluded from Swagger doc generation because it
# does not specify a serializer class.
exclude_from_schema = True
@method_decorator(require_support_permission)
def get(self, request, username_or_email):