Skip to content

Tech-improvement: JSON based Wikimedia API #885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
psh opened this issue Sep 23, 2017 · 10 comments
Closed

Tech-improvement: JSON based Wikimedia API #885

psh opened this issue Sep 23, 2017 · 10 comments

Comments

@psh
Copy link
Collaborator

psh commented Sep 23, 2017

Move to the JSON based WIkimedia API as XML is officially deprecated by Wikimedia as a format. We already include OkHttp and GSON in the build, so no new libraries would be needed.

@kerenpas
Copy link

I start working on this

@psh
Copy link
Collaborator Author

psh commented Oct 22, 2017

Something to consider as you are working on this -

  • The app uses several different networking libraries, some of which are obsolete. This is our chance to clean up and consolidate around a single (modern) network stack
  • I called out OkHttp as I believe that to be the best way forward for us
  • The main Wikipedia app uses the awesome Retrofit library which sits as a layer over OkHttp to encode/decode http parameters on REST calls. I'm not sure how much utility it brings to our API though.
  • Some of the Wikimedia services we call are reporting that they are deprecated & our new implementation should switch (eg getting "edit tokens")

I have extensive experience with OkHttp & Retrofit (and have done a bit of research on the migration effort) if you have any questions, always happy to help!

@kerenpas
Copy link

Hi Paul ,
I have no experience with OkHttp, but found it very friendly to learn and to used.
I will use the OkHttp lib.
I let you know how it goes.
Thanks for your help!

@kerenpas
Copy link

kerenpas commented Nov 9, 2017

hi,
Sorry for the delay to commit my changes...
I have question regarding the test. In the project there is a ApacheHttpClientMediaWikiApiTest, I want to add OkHttpClientMediaWikiApiTest. How do I preform testing?
Thanks!

@psh
Copy link
Collaborator Author

psh commented Jan 12, 2018

@kerenpas - How're things going with this issue? Have you been able to make any progress?

@kerenpas
Copy link

kerenpas commented Jan 13, 2018 via email

@kerenpas
Copy link

kerenpas commented Jan 16, 2018 via email

@kerenpas
Copy link

kerenpas commented Jan 16, 2018 via email

@kerenpas
Copy link

kerenpas commented Jan 17, 2018 via email

@dbrant
Copy link
Collaborator

dbrant commented Mar 14, 2019

This will be handled via #1092

@dbrant dbrant closed this as completed Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants