mobile-api changes to support gated-content
Change behavior of existing v0.5 mobile api /api/mobile/v0.5/users/{username}/course_enrollments/ to exclude expired courses due to audit duration limits from the result set. Add v1 version of mobile api /api/mobile/v1/users/{username}/course_enrollments/ that returns all enrollments and includes a field audiit_access_expires that contains expiration date (or null). REV-495
Showing
- lms/djangoapps/mobile_api/course_info/tests.py 69 additions, 26 deletionslms/djangoapps/mobile_api/course_info/tests.py
- lms/djangoapps/mobile_api/testutils.py 4 additions, 0 deletionslms/djangoapps/mobile_api/testutils.py
- lms/djangoapps/mobile_api/urls.py 1 addition, 1 deletionlms/djangoapps/mobile_api/urls.py
- lms/djangoapps/mobile_api/users/models.py 0 additions, 3 deletionslms/djangoapps/mobile_api/users/models.py
- lms/djangoapps/mobile_api/users/serializers.py 36 additions, 9 deletionslms/djangoapps/mobile_api/users/serializers.py
- lms/djangoapps/mobile_api/users/tests.py 143 additions, 40 deletionslms/djangoapps/mobile_api/users/tests.py
- lms/djangoapps/mobile_api/users/views.py 53 additions, 14 deletionslms/djangoapps/mobile_api/users/views.py
- lms/djangoapps/mobile_api/utils.py 2 additions, 0 deletionslms/djangoapps/mobile_api/utils.py
- lms/djangoapps/mobile_api/video_outlines/serializers.py 13 additions, 5 deletionslms/djangoapps/mobile_api/video_outlines/serializers.py
- lms/djangoapps/mobile_api/video_outlines/tests.py 109 additions, 70 deletionslms/djangoapps/mobile_api/video_outlines/tests.py
- lms/djangoapps/mobile_api/video_outlines/views.py 1 addition, 0 deletionslms/djangoapps/mobile_api/video_outlines/views.py
- lms/urls.py 1 addition, 1 deletionlms/urls.py
Loading
Please register or sign in to comment