edx-app-android icon indicating copy to clipboard operation
edx-app-android copied to clipboard

Deprecated API version

Open ShagunParikh opened this issue 7 years ago • 4 comments

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 avatar Apr 21 '17 09:04 ShagunParikh

@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.

BenjiLee avatar May 01 '17 14:05 BenjiLee

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

JoshuaJi avatar May 15 '17 15:05 JoshuaJi

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.

dpbinh avatar Aug 13 '17 02:08 dpbinh

@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.

ShagunParikh avatar Aug 14 '17 04:08 ShagunParikh

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. ✨

HamzaIsrar12 avatar Sep 08 '22 10:09 HamzaIsrar12