Laserfiche/lf-repository-api-client-java

Explorer the retrofit option as httpclient

lf-jason-jia opened this issue · 1 comments

During the mob, we found that the OkHttp backend is somewhat messy in its implementation in that it

  1. generates a lot of classes that is kind of hard to separate from the manual code (we don't have this problem with C# counterpart because C# allows multiple classes in one file whereas Java doesn't).
  2. each method call to API endpoint has a rather large amount of similar code. It would be nice if we could reduce the amount of repeating code.

So, in this issue, we want to explorer retrofit2 and see if it will bring benefits to us.