Skip to content

Commit 78c716f

Browse files
committed
squash!: Fix swagger docs
1 parent 0c0fb4b commit 78c716f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • openedx/core/djangoapps/content_libraries/rest_api

openedx/core/djangoapps/content_libraries/rest_api/libraries.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def retrieve(self, request, lib_key_str, pk=None):
692692

693693
@method_decorator(non_atomic_requests, name="dispatch")
694694
@view_auth_classes()
695-
class LibraryBackupView(GenericAPIView):
695+
class LibraryBackupView(APIView):
696696
"""
697697
**Use Case**
698698
* Start an asynchronous task to back up the content of a library to a .zip file
@@ -741,9 +741,8 @@ class LibraryBackupView(GenericAPIView):
741741
742742
"""
743743

744-
serializer_class = LibraryBackupResponseSerializer
745-
746744
@apidocs.schema(
745+
body=None,
747746
responses={200: LibraryBackupResponseSerializer}
748747
)
749748
@convert_exceptions
@@ -772,7 +771,7 @@ def post(self, request, lib_key_str):
772771
@convert_exceptions
773772
def get(self, request, lib_key_str):
774773
"""
775-
Get the status of the latest backup task for the specified library.
774+
Get the status of the specified or latest backup task for the specified library.
776775
"""
777776
library_key = LibraryLocatorV2.from_string(lib_key_str)
778777
api.require_permission_for_library_key(library_key, request.user, permissions.CAN_EDIT_THIS_CONTENT_LIBRARY)

0 commit comments

Comments
 (0)