Retrofit2 再次封装(API not restful)
前言 后期Retrofit(与Rxjava2结合)相关更改放在: https://github.com/AnyLifeZLB/AndroidAppFrameWork Retrofit2 官方: http://square.github.io/retrofit Retrofit2 使用注意点总结: https://futurestud.io/tutorials/tag/retrofit 如果所有api 返回格式都和github api v3 一样Restful 根据服务器的api再次封装一下,个人推荐下面的简洁访问样式(api 由github 提供) // List your repositories @GET("/user/repos") Call<List<Repositories>> getRepositories(@Query("page") int page); //获取Repositories 数据 ! private void getRepositories(final int page){ Call<List<Repositories>> newsCall = HttpCall.getApiService(mActivity).getRepositories(page); newsCall.enqueue(new HttpCallBack<List