Paginate results of Courses API list endpoint
* Catalog results are now paginated * Implements the new namespaced pagination described at https://openedx.atlassian.net/wiki/pages/viewpage.action?pageId=47481813 * API level code returns pythonic business objects * View layer performs serialize at the view layer * Convert views to use DRF generic views * Removes an unintentional authentication decorator that caused the detail endpoint to return a 401 for anonymous users MA-1724
Showing
- lms/djangoapps/course_api/api.py 4 additions, 5 deletionslms/djangoapps/course_api/api.py
- lms/djangoapps/course_api/serializers.py 3 additions, 2 deletionslms/djangoapps/course_api/serializers.py
- lms/djangoapps/course_api/tests/test_api.py 37 additions, 52 deletionslms/djangoapps/course_api/tests/test_api.py
- lms/djangoapps/course_api/tests/test_serializers.py 67 additions, 0 deletionslms/djangoapps/course_api/tests/test_serializers.py
- lms/djangoapps/course_api/tests/test_views.py 3 additions, 4 deletionslms/djangoapps/course_api/tests/test_views.py
- lms/djangoapps/course_api/views.py 22 additions, 17 deletionslms/djangoapps/course_api/views.py
- openedx/core/lib/api/paginators.py 32 additions, 0 deletionsopenedx/core/lib/api/paginators.py
- openedx/core/lib/api/tests/test_paginators.py 50 additions, 1 deletionopenedx/core/lib/api/tests/test_paginators.py
Please register or sign in to comment