|
65 | 65 | import itertools |
66 | 66 | import json |
67 | 67 | import logging |
| 68 | +import warnings |
68 | 69 |
|
69 | 70 | import edx_api_doc_tools as apidocs |
70 | 71 | from django.conf import settings |
|
136 | 137 | log = logging.getLogger(__name__) |
137 | 138 |
|
138 | 139 |
|
| 140 | +warnings.warn( |
| 141 | + ( |
| 142 | + "Content library team authorization REST APIs are deprecated. " |
| 143 | + "See https://github.com/openedx/openedx-platform/issues/37409." |
| 144 | + ), |
| 145 | + DeprecationWarning |
| 146 | +) |
| 147 | + |
| 148 | + |
139 | 149 | class LibraryApiPaginationDocs: |
140 | 150 | """ |
141 | 151 | API docs for query params related to paginating ContentLibraryMetadata objects. |
@@ -323,6 +333,8 @@ class LibraryTeamView(APIView): |
323 | 333 |
|
324 | 334 | Note also the 'allow_public_' settings which can be edited by PATCHing the |
325 | 335 | library itself (LibraryDetailsView.patch). |
| 336 | +
|
| 337 | + Deprecated https://github.com/openedx/openedx-platform/issues/37409 |
326 | 338 | """ |
327 | 339 | @convert_exceptions |
328 | 340 | def post(self, request, lib_key_str): |
@@ -369,6 +381,8 @@ class LibraryTeamUserView(APIView): |
369 | 381 | """ |
370 | 382 | View to add/remove/edit an individual user's permissions for a content |
371 | 383 | library. |
| 384 | +
|
| 385 | + Deprecated https://github.com/openedx/openedx-platform/issues/37409 |
372 | 386 | """ |
373 | 387 | @convert_exceptions |
374 | 388 | def put(self, request, lib_key_str, username): |
@@ -422,6 +436,8 @@ def delete(self, request, lib_key_str, username): |
422 | 436 | class LibraryTeamGroupView(APIView): |
423 | 437 | """ |
424 | 438 | View to add/remove/edit a group's permissions for a content library. |
| 439 | +
|
| 440 | + Deprecated https://github.com/openedx/openedx-platform/issues/37409 |
425 | 441 | """ |
426 | 442 | @convert_exceptions |
427 | 443 | def put(self, request, lib_key_str, group_name): |
|
0 commit comments