edx-app-android
edx-app-android copied to clipboard
Deprecated API version
As per the Open Edx Plateform API document, the latest version of API is v1.0 while this project still uses v0.5 version of API which is Deprecated.
Hence please let me know if there is any other branch that points to latest API version v1.0?
@ShagunParikh Unforunately we have never officially released a v1. v0.5 has been the first and only version we have used for mobile. We have not not needed to update this api for a long time. Additionally, rather than using the mobile api, the mobile app will use an already existing api to avoid duplicate apis. There are no hard plans on deprecating v0.5 (maybe there should be) so feel free to use this api. Some open source contributors have added backwards compatible changes but you should not expect to see any major changes.
Hi @ShagunParikh , I'm currently implementing openedx android, and I run into an issue where I couldn't get user's enrolled courses through api
{base url}/api/mobile/v0.5/users/{username}/course_enrollments
However I can retrieve them through
{base url}/api/enrollment/v1/enrollment
Not sure what is causing this issue (backend is the same as openedx), So I'm posting it and see if you guys have the same issue. Or do you guys have any clue how to solve it? Thanks
Hi @ShagunParikh , I'm facing the same issue with @JoshuaJi. I see nothing on My Courses, and when I change the api from {base url}/api/mobile/v0.5/users/{username}/course_enrollments
to {base url}/api/mobile/v1/users/{username}/course_enrollments
. It throw "404 NOT FOUND" exception.
@JoshuaJi and @dpbinh Sorry but i am not utilizing the v0.5 version API. So No idea what could be the possible issue here. But perhaps https://github.com/edx/edx-app-android/issues/963 thread could help you.
The enrollment api v1 (/api/mobile/v1/users/{username}/course_enrollments
) was implemented as part of this PR-1179 and was available for all releases moving forward. ✨